liming 20 godzin temu
rodzic
commit
9fb57f0333
2 zmienionych plików z 3 dodań i 6 usunięć
  1. 1 2
      package.json
  2. 2 4
      src/main.js

+ 1 - 2
package.json

@@ -41,12 +41,11 @@
     "less-loader": "^12.3.0",
     "lodash": "^4.17.21",
     "pinia": "^3.0.1",
-    "qrcode": "^1.5.4",
+    "qrcode.vue": "^3.6.0",
     "sharp": "^0.34.2",
     "vant": "^4.9.20",
     "vue": "^3.5.13",
     "vue-i18n": "^11.1.9",
-    "vue-qrcode": "^2.2.2",
     "vue-router": "^4.5.0",
     "web3": "^4.16.0"
   },

+ 2 - 4
src/main.js

@@ -15,8 +15,7 @@ import { i18n } from "@/i18n/index.js";
 
 // 引入组件
 import "virtual:svg-icons-register";
-import SvgIcon from "@/components/Svg-icon/SvgIcon.vue";
-import VueQrcode from 'vue-qrcode'
+import SvgIcon from "@/components/Svg-icon/SvgIcon.vue"; 
 
 // windows 挂载 & 注入
 import { setupPlugin, initCapacitor } from './plugins';
@@ -30,8 +29,7 @@ const app = createApp(App)
 async function appInit() {
   const app = createApp(App);
    // 注入组件
-  app.component("SvgIcon", SvgIcon);
-  app.component('vue-qrcode', VueQrcode)
+  app.component("SvgIcon", SvgIcon); 
   // 挂载状态管理
   setupStore(app);
   // UI