Browse Source

优化控制台debuger位置错误问题

RuoYi 1 year ago
parent
commit
64014ba81a
2 changed files with 3 additions and 3 deletions
  1. 1 1
      package.json
  2. 2 2
      vite/plugins/setup-extend.js

+ 1 - 1
package.json

@@ -39,6 +39,6 @@
     "vite": "3.2.3",
     "vite-plugin-compression": "0.5.1",
     "vite-plugin-svg-icons": "2.0.1",
-    "vite-plugin-vue-setup-extend": "0.4.0"
+    "unplugin-vue-setup-extend-plus": "0.4.9"
   }
 }

+ 2 - 2
vite/plugins/setup-extend.js

@@ -1,5 +1,5 @@
-import setupExtend from 'vite-plugin-vue-setup-extend'
+import setupExtend from 'unplugin-vue-setup-extend-plus/vite'
 
 export default function createSetupExtend() {
-    return setupExtend()
+    return setupExtend({})
 }