|
|
@@ -7,17 +7,18 @@
|
|
|
<script>
|
|
|
import { updateDocumentTitle } from '@/utils/document-title-util';
|
|
|
import { getPathAddress } from '@/api/system/file/index';
|
|
|
+ import { getToken } from '@/utils/token-util';
|
|
|
export default {
|
|
|
name: 'App',
|
|
|
created() {
|
|
|
console.log('我是子应用-----------');
|
|
|
// 恢复主题
|
|
|
this.$store.dispatch('theme/recoverTheme');
|
|
|
- if (!sessionStorage.filePath) {
|
|
|
+ if (getToken() && !sessionStorage.filePath) {
|
|
|
getPathAddress().then((res) => {
|
|
|
console.log(res);
|
|
|
sessionStorage.filePath = res;
|
|
|
- });
|
|
|
+ }).catch(() => {});
|
|
|
}
|
|
|
},
|
|
|
methods: {
|