refactor: fix routing, update APIs and clean up miscellaneous code
- add mitt-based event emitter utility in src/utils/events.ts - replace deprecated navigateTo calls with vue router push across multiple components - fix incorrect API function name (updateImageFile → uploadFile) in CreateServiceOrder - correct typo in imported function name in AnswerComponent - temporarily disable location fetch logic in Discovery page - update external link token handling in LongTextGuideCardPreview
This commit is contained in:
@@ -162,18 +162,18 @@ const handleClick = async (item) => {
|
||||
const getLocation = () => {
|
||||
/// 已经有sceneId了,说明之前已经获取过位置信息了,就不需要再获取一次了
|
||||
if (sceneId) return;
|
||||
uni.getLocation({
|
||||
type: 'wgs84',
|
||||
success: function (res) {
|
||||
// 将位置信息存储到 Pinia 中
|
||||
locationStore.setLocationData({
|
||||
latitude: res.latitude,
|
||||
longitude: res.longitude,
|
||||
});
|
||||
console.log('当前位置:' + JSON.stringify(res));
|
||||
getNearbyTagsData();
|
||||
}
|
||||
});
|
||||
// uni.getLocation({
|
||||
// type: 'wgs84',
|
||||
// success: function (res) {
|
||||
// // 将位置信息存储到 Pinia 中
|
||||
// locationStore.setLocationData({
|
||||
// latitude: res.latitude,
|
||||
// longitude: res.longitude,
|
||||
// });
|
||||
// console.log('当前位置:' + JSON.stringify(res));
|
||||
// getNearbyTagsData();
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
/// 获取附近标签数据
|
||||
|
||||
Reference in New Issue
Block a user