fix: 补充缺失代码导致的打包异常
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user