This commit is contained in:
lnn19986213 2024-05-08 17:39:35 +08:00
parent 4ba40cf547
commit 4783fa9615
2 changed files with 2 additions and 20 deletions

View File

@ -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

View File

@ -37,6 +37,7 @@ export default defineConfig({
build: {
chunkSizeWarningLimit: 1500,
assetsDir: 'assets2', // 指定生成静态文件目录
assetsDir: 'assets', // 指定生成静态文件目录
},
base: './'
});