调整
This commit is contained in:
+24
-24
@@ -11,33 +11,33 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { unref, computed } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import {
|
||||
MAP_KEY,
|
||||
MAP_CODE,
|
||||
LICENSE_CODE,
|
||||
TAB_KEEP_ALIVE
|
||||
} from '@/config/setting';
|
||||
import { useSetDocumentTitle } from '@/utils/document-title-util';
|
||||
import { useLocale } from '@/i18n/use-locale';
|
||||
import { unref, computed } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useThemeStore } from "@/store/modules/theme";
|
||||
import {
|
||||
MAP_KEY,
|
||||
MAP_CODE,
|
||||
LICENSE_CODE,
|
||||
TAB_KEEP_ALIVE
|
||||
} from "@/config/setting";
|
||||
import { useSetDocumentTitle } from "@/utils/document-title-util";
|
||||
import { useLocale } from "@/i18n/use-locale";
|
||||
|
||||
const themeStore = useThemeStore();
|
||||
const { showTabs } = storeToRefs(themeStore);
|
||||
const themeStore = useThemeStore();
|
||||
const { showTabs } = storeToRefs(themeStore);
|
||||
|
||||
// 恢复主题
|
||||
themeStore.recoverTheme();
|
||||
// 恢复主题
|
||||
themeStore.recoverTheme();
|
||||
|
||||
// 切换路由自动更新浏览器页签标题
|
||||
useSetDocumentTitle();
|
||||
// 切换路由自动更新浏览器页签标题
|
||||
useSetDocumentTitle();
|
||||
|
||||
// 国际化配置
|
||||
const { antLocale } = useLocale();
|
||||
// 国际化配置
|
||||
const { antLocale } = useLocale();
|
||||
|
||||
// 用于内链 iframe 组件获取 KeepAlive
|
||||
const keepAlive = computed(() => TAB_KEEP_ALIVE && unref(showTabs));
|
||||
window._AMapSecurityConfig = {
|
||||
securityJsCode: MAP_CODE
|
||||
};
|
||||
// 用于内链 iframe 组件获取 KeepAlive
|
||||
const keepAlive = computed(() => TAB_KEEP_ALIVE && unref(showTabs));
|
||||
window._AMapSecurityConfig = {
|
||||
securityJsCode: MAP_CODE
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user