diff --git a/src/views/Profile.vue b/src/views/Profile.vue index 8bc2e38..9b20c32 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -234,9 +234,8 @@ const logout = () => { cancelButtonText: '取消', type: 'warning' }).then(() => { - localStorage.removeItem('customer_token') - localStorage.removeItem('customer_info') - localStorage.removeItem('customer_id') + localStorage.removeItem('token') + localStorage.removeItem('riderInfo') router.push('/login') ElMessage.success('已退出登录') }).catch(() => {}) diff --git a/vite.config.js b/vite.config.js index c4b1b47..83a4f5c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -13,5 +13,15 @@ export default defineConfig({ changeOrigin: true } } + }, + build: { + rollupOptions: { + output: { + manualChunks: { + 'element-plus': ['element-plus'], + 'vendor': ['vue', 'vue-router', 'axios'] + } + } + } } })