fix: 补充缺失代码导致的打包异常

This commit is contained in:
TsMask
2023-12-04 19:06:08 +08:00
parent d64c0f9e5e
commit fb45c3fc10
3 changed files with 27 additions and 9 deletions

View File

@@ -6,13 +6,14 @@ import { useRoute } from 'vue-router';
import { VuePDF, usePDF } from '@tato30/vue-pdf';
import '@tato30/vue-pdf/style.css';
import saveAs from 'file-saver';
import { parseUrlPath } from '@/plugins/file-static-url';
const { t, currentLocale } = useI18n();
const appStore = useAppStore();
const route = useRoute();
// 文档地址
const docUrl = computed(() => {
let url = appStore.getHelpDoc;
let url = parseUrlPath(appStore.helpDoc);
if (url.indexOf('{language}') === -1) {
return url;
}