清除cdn打包 调整切换用户角色时出现的bug
This commit is contained in:
@@ -1,22 +1,7 @@
|
||||
import axios from 'axios'
|
||||
import { ElLoading } from 'element-plus'
|
||||
|
||||
let loadingInstance
|
||||
const service = axios.create()
|
||||
|
||||
service.interceptors.request.use((config) => {
|
||||
loadingInstance = ElLoading.service({ fullscreen: true })
|
||||
return config
|
||||
})
|
||||
|
||||
service.interceptors.response.use((resp) => {
|
||||
loadingInstance.close()
|
||||
return resp
|
||||
}, (error) => {
|
||||
loadingInstance.close()
|
||||
return error
|
||||
})
|
||||
|
||||
export function Commits(page) {
|
||||
return service({
|
||||
url: 'https://api.github.com/repos/flipped-aurora/gin-vue-admin/commits?page=' + page,
|
||||
|
||||
+4
-4
@@ -1,7 +1,9 @@
|
||||
import { createApp } from 'vue'
|
||||
import 'element-plus/dist/index.css'
|
||||
import ElementPlus from 'element-plus'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
// 引入gin-vue-admin前端初始化相关内容
|
||||
import './core/gin-vue-admin'
|
||||
|
||||
// 引入封装的router
|
||||
import router from '@/router/index'
|
||||
import { run } from '@/core/gin-vue-admin.js'
|
||||
@@ -9,9 +11,7 @@ import '@/permission'
|
||||
import { store } from '@/store/index'
|
||||
|
||||
import { auth } from '@/directive/auth'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
|
||||
import App from './App.vue'
|
||||
const app = createApp(App)
|
||||
run(app)
|
||||
|
||||
@@ -213,7 +213,9 @@ export default {
|
||||
})
|
||||
if (res.code === 0) {
|
||||
emitter.emit('closeAllPage')
|
||||
window.location.reload()
|
||||
setTimeout(() => {
|
||||
window.location.reload()
|
||||
}, 1)
|
||||
}
|
||||
},
|
||||
reload() {
|
||||
|
||||
Reference in New Issue
Block a user