瀏覽代碼

Merge branch 'master' into fixing

Karsa 2 年之前
父節點
當前提交
1f5491eadc
共有 2 個文件被更改,包括 10 次插入9 次删除
  1. 1 0
      src/main.js
  2. 9 9
      vite.config.js

+ 1 - 0
src/main.js

@@ -5,5 +5,6 @@ import store from './store'
 import 'normalize.css'
 import './style/common.scss'
 import '@vant/touch-emulator';//vant 
+import 'vant/lib/index.css';
 
 createApp(App).use(router).use(store).mount('#app')

+ 9 - 9
vite.config.js

@@ -7,15 +7,15 @@ export default ({mode})=>defineConfig({
   base:loadEnv(mode, process.cwd()).VITE_APP_BASE_URL,
   plugins: [
     vue(),
-    styleImport({
-      libs: [
-        {
-          libraryName: 'vant',
-          esModule: true,
-          resolveStyle: (name) => `vant/es/${name}/style/index`,
-        },
-      ],
-    }),
+    // styleImport({
+    //   libs: [
+    //     {
+    //       libraryName: 'vant',
+    //       esModule: true,
+    //       resolveStyle: (name) => `vant/es/${name}/style/index`,
+    //     },
+    //   ],
+    // }),
   ],
   resolve: {
     alias: {