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

@@ -9,6 +9,7 @@ import { uploadFile } from '@/api/tool/file';
import { FileType } from 'ant-design-vue/lib/upload/interface';
import { UploadRequestOption } from 'ant-design-vue/lib/vc-upload/interface';
import { sessionGet } from '@/utils/cache-session-utils';
import { parseUrlPath } from '@/plugins/file-static-url';
const appStore = useAppStore();
const { t } = useI18n();
@@ -84,7 +85,7 @@ function fnEdit(v: boolean) {
state.edite = v;
if (!v) {
state.filePath = '#';
state.flag = appStore.getLoginBackground;
state.flag = parseUrlPath(appStore.loginBackground);
}
}
@@ -142,8 +143,8 @@ function fnRevert() {
}
onMounted(() => {
state.filePath = appStore.getLoginBackground;
state.flag = appStore.getLoginBackground;
state.filePath = parseUrlPath(appStore.loginBackground);
state.flag = parseUrlPath(appStore.loginBackground);
});
</script>