This commit is contained in:
parent
4ba40cf547
commit
4783fa9615
|
@ -65,26 +65,7 @@ router.beforeEach((to, form, next) => {
|
|||
window.location.href =
|
||||
'http://220.191.238.50:996/api/login?returnURL=' +
|
||||
window.location.href
|
||||
} else {
|
||||
$.ajax({
|
||||
url: '/api/zzdn_event/auditToken?token=' + token,
|
||||
type: 'GET',
|
||||
async: true,
|
||||
success: function (res) {
|
||||
if (res.code == '500') {
|
||||
window.location.href =
|
||||
'http://220.191.238.50:996/api/login?returnURL=' +
|
||||
window.location.href
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
$.ajaxSetup({
|
||||
beforeSend: function (xhr) {
|
||||
token && xhr.setRequestHeader('x-token', token)
|
||||
return true
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
export default router
|
|
@ -37,6 +37,7 @@ export default defineConfig({
|
|||
|
||||
build: {
|
||||
chunkSizeWarningLimit: 1500,
|
||||
assetsDir: 'assets2', // 指定生成静态文件目录
|
||||
assetsDir: 'assets', // 指定生成静态文件目录
|
||||
},
|
||||
base: './'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue