diff --git a/src/router/index.js b/src/router/index.js index 3474202..e184b39 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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 \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 02586dd..994e6a5 100644 --- a/vite.config.js +++ b/vite.config.js @@ -37,6 +37,7 @@ export default defineConfig({ build: { chunkSizeWarningLimit: 1500, - assetsDir: 'assets2', // 指定生成静态文件目录 + assetsDir: 'assets', // 指定生成静态文件目录 }, + base: './' });