主包体积太大,相关代码迁移
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
import { ref, inject, nextTick, computed, onMounted, onUnmounted } from 'vue';
|
||||
const { $api, navTo, insertSortData, config } = inject('globalFunction');
|
||||
import { onLoad, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import useChatGroupDBStore from '@/stores/userChatGroupStore';
|
||||
import useChatGroupDBStore from '@/packageA/stores/userChatGroupStore';
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
import { tabbarManager } from '@/utils/tabbarManager';
|
||||
import aiPaging from './components/ai-paging.vue';
|
||||
@@ -122,7 +122,7 @@ onShow(() => {
|
||||
onMounted(() => {
|
||||
// 监听退出登录事件,显示微信登录弹窗
|
||||
uni.$on('showLoginModal', () => {
|
||||
uni.navigateTo({ url: '/pages/login/wx-login' });
|
||||
uni.navigateTo({ url: '/packageA/pages/login/wx-login' });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -365,15 +365,15 @@ import {
|
||||
} from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
// 移除重复导入,使用从globalFunction注入的config
|
||||
import useChatGroupDBStore from '@/stores/userChatGroupStore';
|
||||
import MdRender from '@/components/md-render/md-render.vue';
|
||||
import useChatGroupDBStore from '@/packageA/stores/userChatGroupStore';
|
||||
import MdRender from '@/packageA/components/md-render/md-render.vue';
|
||||
import PopupFeeBack from './popupbadFeeback.vue';
|
||||
import AudioWave from './AudioWave.vue';
|
||||
import WaveDisplay from './WaveDisplay.vue';
|
||||
import FileIcon from './fileIcon.vue';
|
||||
import FileText from './fileText.vue';
|
||||
import { useAudioRecorder } from '@/hook/useRealtimeRecorder.js';
|
||||
import { useTTSPlayer } from '@/hook/useTTSPlayer.js';
|
||||
import { useAudioRecorder } from '@/packageA/hook/useRealtimeRecorder.js';
|
||||
import { useTTSPlayer } from '@/packageA/hook/useTTSPlayer.js';
|
||||
import successIcon from '@/static/icon/success.png';
|
||||
// 全局
|
||||
const { $api, navTo, throttle, config } = inject('globalFunction');
|
||||
|
||||
Reference in New Issue
Block a user