wip: 🚧 通知公告重构临时提交

This commit is contained in:
ray
2024-09-27 08:40:00 +08:00
parent 060fe452a2
commit b797acbb49
17 changed files with 340 additions and 367 deletions

View File

@@ -65,11 +65,11 @@ import {
UploadProgressEvent,
UploadFiles,
} from "element-plus";
import { TOKEN_KEY } from "@/enums/CacheEnum";
import FileAPI from "@/api/file";
import { ref, watch } from "vue";
import { ElMessage } from "element-plus";
import { getToken } from "@/utils/auth";
import { ResultEnum } from "@/enums/ResultEnum";
const emit = defineEmits(["update:modelValue"]);
const props = defineProps({
/**
@@ -149,7 +149,7 @@ const props = defineProps({
type: Object,
default: () => {
return {
Authorization: localStorage.getItem(TOKEN_KEY),
Authorization: getToken(),
};
},
},

View File

@@ -52,7 +52,7 @@ import {
UploadProps,
} from "element-plus";
import FileAPI from "@/api/file";
import { TOKEN_KEY } from "@/enums/CacheEnum";
import { getToken } from "@/utils/auth";
import { ResultEnum } from "@/enums/ResultEnum";
const emit = defineEmits(["update:modelValue"]);
@@ -79,7 +79,7 @@ const props = defineProps({
type: Object,
default: () => {
return {
Authorization: localStorage.getItem(TOKEN_KEY),
Authorization: getToken(),
};
},
},