Parcourir la source

feat:注册登录弹框插件微信二维码增加source参数

yangfeng il y a 3 mois
Parent
commit
7beb76a715
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      plugins/login-auth/src/module-model/wxQrcode.ts

+ 7 - 2
plugins/login-auth/src/module-model/wxQrcode.ts

@@ -1,5 +1,5 @@
 import { computed, ref } from 'vue'
-
+import { useCustomSpecialSource } from '@/utils/use'
 /**
  * 微信二维码相关
  */
@@ -10,7 +10,12 @@ const pageShareId = ref('')
 const pageKopShareId = ref('')
 
 const pageWechatQrcodeImgSrc = computed(() => {
-  return ImgBase + pageShareId.value
+  const source = useCustomSpecialSource()
+  if (source && source !== 'undefined' && source !== 'null') {
+    return ImgBase + pageShareId.value + '?source=' + source
+  } else {
+    return ImgBase + pageShareId.value
+  }
 })
 
 const pageKopQrcodeImgSrc = computed(() => {