Merge remote-tracking branch 'origin/feature/0915_素材中心新增手动上传' into test
This commit is contained in:
12
src/App.vue
12
src/App.vue
@ -8,18 +8,20 @@
|
||||
<script setup>
|
||||
import { useUserStore } from '@/stores';
|
||||
// import { useChatStore } from '@/stores/modules/chat';
|
||||
|
||||
import { initApp } from '@/utils/user';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { handleUserHome, initApp } from '@/utils/user';
|
||||
import { useSidebarStore } from '@/stores/modules/side-bar';
|
||||
import { useEnterpriseStore } from '@/stores/modules/enterprise';
|
||||
|
||||
import { ConfigProvider } from 'ant-design-vue';
|
||||
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
|
||||
const userStore = useUserStore();
|
||||
// const route = useRoute();
|
||||
const route = useRoute();
|
||||
const sidebarStore = useSidebarStore();
|
||||
// const chatStore = useChatStore();
|
||||
const enterpriseStore = useEnterpriseStore();
|
||||
|
||||
const redTheme = {
|
||||
token: {
|
||||
@ -33,6 +35,10 @@ const init = async () => {
|
||||
|
||||
if (isLogin) {
|
||||
await initApp();
|
||||
|
||||
if (enterpriseStore.isOpenEnterprise && route.name === 'Trial') {
|
||||
handleUserHome();
|
||||
}
|
||||
} else {
|
||||
sidebarStore.stopUnreadInfoPolling();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user