liming 20 uur geleden
bovenliggende
commit
a1c2260a3f
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 1 0
      package.json
  2. 5 0
      src/main.js

+ 1 - 0
package.json

@@ -41,6 +41,7 @@
     "less-loader": "^12.3.0",
     "lodash": "^4.17.21",
     "pinia": "^3.0.1",
+    "qrcode": "^1.5.4",
     "sharp": "^0.34.2",
     "vant": "^4.9.20",
     "vue": "^3.5.13",

+ 5 - 0
src/main.js

@@ -6,6 +6,9 @@ import { setupStore } from "@/stores";
 // ui 
 import Vant, { Lazyload } from 'vant';
 import 'vant/lib/index.css';
+
+// 
+
 // 字体
 import "@/assets/font/font.css"
 import { i18n } from "@/i18n/index.js";
@@ -13,6 +16,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'
 
 // windows 挂载 & 注入
 import { setupPlugin, initCapacitor } from './plugins';
@@ -27,6 +31,7 @@ async function appInit() {
   const app = createApp(App);
    // 注入组件
   app.component("SvgIcon", SvgIcon);
+  app.component('vue-qrcode', VueQrcode)
   // 挂载状态管理
   setupStore(app);
   // UI