feat(routers): update routers and vuex

This commit is contained in:
minskiter
2024-03-29 15:06:16 +08:00
parent 5e7a3dc913
commit 30fb2533e3
15 changed files with 182 additions and 72 deletions

View File

@@ -1,7 +1,24 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue2'
import path, { resolve } from 'path';
import autoprefixer from 'autoprefixer';
// https://vitejs.dev/config/
export default defineConfig({
css: {
postcss: {
plugins: [
autoprefixer(),
],
},
},
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
define: {
"process.env.BASE_URL": "'/'"
}
})