feat: 添加角色权限控制和教师筛选功能
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { defineConfig } from "vite";
|
||||
import uni from "@dcloudio/vite-plugin-uni";
|
||||
import { resolve } from 'path';
|
||||
|
||||
import Components from "@uni-helper/vite-plugin-uni-components";
|
||||
import { WotResolver } from "@uni-helper/vite-plugin-uni-components/resolvers";
|
||||
@ -12,10 +13,24 @@ export default defineConfig(async () => {
|
||||
plugins: [
|
||||
Components({
|
||||
resolvers: [WotResolver()],
|
||||
include: [/\.vue$/],
|
||||
exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
||||
}),
|
||||
uni(),
|
||||
// https://github.com/unocss/unocss
|
||||
UnoCSS(),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src'),
|
||||
}
|
||||
},
|
||||
build: {
|
||||
target: 'es2015',
|
||||
cssTarget: 'chrome61',
|
||||
commonjsOptions: {
|
||||
include: [/wot-design-uni/, /node_modules/],
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user