wip: 🚧 通知公告重构临时提交
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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(),
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user