fixbug: 🐛 修复部分bug

This commit is contained in:
bunny 2025-02-22 23:14:39 +08:00
parent 01880addf2
commit 6aaa950be3
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "bunny-admin-web", "name": "bunny-admin-web",
"version": "2.4.9", "version": "2.9.4",
"private": true, "private": true,
"type": "module", "type": "module",
"keywords": [ "keywords": [

View File

@ -60,11 +60,10 @@ export const useUserStore = defineStore({
useMultiTagsStoreHook().handleTags('equal', [...routerArrays]); useMultiTagsStoreHook().handleTags('equal', [...routerArrays]);
resetRouter(); resetRouter();
message(result.message, { type: 'success' }); message(result.message, { type: 'success' });
await router.push('/login');
return true;
} }
message(result.message, { type: 'error' }); await router.push('/login');
return true;
}, },
/** 刷新`token` */ /** 刷新`token` */

View File

@ -4,6 +4,7 @@ import { onBeforeUnmount, ref, shallowRef } from 'vue';
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'; import { Editor, Toolbar } from '@wangeditor/editor-for-vue';
import { formState } from '@/views/message-management/message-editing/utils/hooks'; import { formState } from '@/views/message-management/message-editing/utils/hooks';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { defaultConfig } from '@/api/service/config';
const mode = 'default'; const mode = 'default';
// shallowRef // shallowRef
@ -14,7 +15,7 @@ const token = ref(getToken().token);
editorConfig.MENU_CONF['uploadImage'] = { editorConfig.MENU_CONF['uploadImage'] = {
// //
server: '/admin/files/upload', server: `${defaultConfig.baseURL}/files/upload`,
// form-data fieldName // form-data fieldName
fieldName: 'file', fieldName: 'file',
// //