소스 검색

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

yangfeng 3 달 전
부모
커밋
7beb76a715
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  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 { computed, ref } from 'vue'
-
+import { useCustomSpecialSource } from '@/utils/use'
 /**
 /**
  * 微信二维码相关
  * 微信二维码相关
  */
  */
@@ -10,7 +10,12 @@ const pageShareId = ref('')
 const pageKopShareId = ref('')
 const pageKopShareId = ref('')
 
 
 const pageWechatQrcodeImgSrc = computed(() => {
 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(() => {
 const pageKopQrcodeImgSrc = computed(() => {