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:
@@ -78,7 +78,7 @@
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { SEND_MESSAGE_CONTENT_TEXT } from "@/constants/constant";
|
||||
import { getAccessToken } from "@/constants/token";
|
||||
import { navigateTo } from "@/router";
|
||||
// import { navigateTo } from "@/router";
|
||||
|
||||
const photo = {
|
||||
thumb: "https://one-feel-config-images-bucket.oss-cn-chengdu.aliyuncs.com/comp4.jpg",
|
||||
@@ -111,8 +111,8 @@ const showToast = (title) => {
|
||||
|
||||
const jumpAigcClick = () => {
|
||||
const token = getAccessToken();
|
||||
navigateTo('https://onefeel.brother7.cn/aigc/#/home', { token: token });
|
||||
|
||||
location.href = 'https://onefeel.brother7.cn/aigc/#/home?token=' + token;
|
||||
};
|
||||
|
||||
const sendReply = (item) => {
|
||||
|
||||
Reference in New Issue
Block a user