diff --git a/src/api/index.js b/src/api/index.js index 752a13345ff0482410c3a1c8d967e2f1b29f6727..18af1f5f3453148bf91cbbb61f4450e527525d08 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,5 +1,6 @@ import { request, METHOD } from '@/utils'; export * from './menu'; +export * from './system'; export function getUserDetailInfoApi() { return request('/api/v1/detail', METHOD.GET); diff --git a/src/api/system.js b/src/api/system.js new file mode 100644 index 0000000000000000000000000000000000000000..c2122b6ec47d240315058bb10f5a24baf444ffbf --- /dev/null +++ b/src/api/system.js @@ -0,0 +1,5 @@ +import { putReq } from '@/utils'; + +export function logoutApi() { + return putReq('/api/v1/logout'); +} diff --git a/src/main.js b/src/main.js index 66f11940e77084417f0a9fbbaf602c4959e0d135..1fac095be2354cd893455ea1519090773b939f78 100644 --- a/src/main.js +++ b/src/main.js @@ -34,7 +34,7 @@ const store = new Vuex.Store({ Vue.use(Router); const isAsynRount = store.state.settingModule.asyncRoutes; const options = initRouter(isAsynRount); -const router = new Router({ mode: 'history', ...options }); +const router = new Router(options); //装载vue-i18n控件 如果语言优先级 请直接修改这里localeLang和fallbackLang Vue.use(VueI18n); @@ -64,15 +64,6 @@ loadRoutes(); // 加载路由守卫 loadGuards(guards, { router, store, i18n, message: Vue.prototype.$message }); -// this.$notification.open({ -// message: 'Notification Title', -// description: -// 'This is the content of the notification. This is the content of the notification. This is the content of the notification.', -// onClick: () => { -// console.log('Notification Clicked!'); -// }, -// }); - loadResponseInterceptor({ router }); new Vue({ diff --git a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue index bc6f9225dbd0c5d0c26f9445851c873da17de2f2..f869acbb77a63d579358a85a59e19b349902dd12 100644 --- a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue +++ b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue @@ -1,22 +1,18 @@