chore: 2026-03-30 rider-web 备份

This commit is contained in:
notyclaw 2026-03-30 20:09:35 +08:00
parent fe29a3ab0b
commit 98f8d4669d
2 changed files with 12 additions and 3 deletions

View File

@ -234,9 +234,8 @@ const logout = () => {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
localStorage.removeItem('customer_token') localStorage.removeItem('token')
localStorage.removeItem('customer_info') localStorage.removeItem('riderInfo')
localStorage.removeItem('customer_id')
router.push('/login') router.push('/login')
ElMessage.success('已退出登录') ElMessage.success('已退出登录')
}).catch(() => {}) }).catch(() => {})

View File

@ -13,5 +13,15 @@ export default defineConfig({
changeOrigin: true changeOrigin: true
} }
} }
},
build: {
rollupOptions: {
output: {
manualChunks: {
'element-plus': ['element-plus'],
'vendor': ['vue', 'vue-router', 'axios']
}
}
}
} }
}) })