diff --git a/yudao-ui-admin-vue3/src/config/axios/service.ts b/yudao-ui-admin-vue3/src/config/axios/service.ts index 8a049e229..ad11dea0c 100644 --- a/yudao-ui-admin-vue3/src/config/axios/service.ts +++ b/yudao-ui-admin-vue3/src/config/axios/service.ts @@ -1,10 +1,4 @@ -import axios, { - AxiosInstance, - AxiosRequestConfig, - AxiosRequestHeaders, - AxiosResponse, - AxiosError -} from 'axios' +import axios, { AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosError } from 'axios' import { ElMessage, ElMessageBox, ElNotification } from 'element-plus' import qs from 'qs' import { config } from '@/config/axios/config' @@ -41,7 +35,7 @@ const service: AxiosInstance = axios.create({ // request拦截器 service.interceptors.request.use( - (config: AxiosRequestConfig) => { + (config) => { // 是否需要设置 token let isToken = (config!.headers || {}).isToken === false whiteList.some((v) => { diff --git a/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue index ee3647dd3..943478123 100644 --- a/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue +++ b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue @@ -5,7 +5,7 @@ import * as NotifyMessageApi from '@/api/system/notify/message' const { push } = useRouter() const activeName = ref('notice') const unreadCount = ref(0) // 未读消息数量 -const list = ref([]) // 消息列表 +const list = ref([]) // 消息列表 // 获得消息列表 const getList = async () => { diff --git a/yudao-ui-admin-vue3/src/views/system/mail/log/index.vue b/yudao-ui-admin-vue3/src/views/system/mail/log/index.vue index be9648200..7983e3c85 100644 --- a/yudao-ui-admin-vue3/src/views/system/mail/log/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/mail/log/index.vue @@ -16,7 +16,7 @@