Przeglądaj źródła

叮当国医新增企微登录isnewversion

lk 11 godzin temu
rodzic
commit
a2aa337a9b
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 2 0
      .env.prod-ddgy
  2. 3 1
      src/views/qw/user/index.vue

+ 2 - 0
.env.prod-ddgy

@@ -26,3 +26,5 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
 
 # 叮当国医
 VUE_APP_PROJECT_CODE = 'ddgy'
+
+IPAD_IS_NEW_VERSION = true

+ 3 - 1
src/views/qw/user/index.vue

@@ -609,6 +609,7 @@ export default {
   components: { fastGptRole,Treeselect},
   data() {
     return {
+      isNewVersion:process.env.IPAD_IS_NEW_VERSION ??false,
       deptOptions:[], // 企微部门
       isAutoOptions:[],
       updateIp:{
@@ -841,10 +842,11 @@ export default {
     },
     //登录
     handleLoginQwCode(val) {
+        const isNewVersionBoolean = this.isNewVersion === 'true';
       if (val.appKey == null || val.appKey === '') {
         return this.$message.warning("没有授权码,无法登录企业微信,请授权");
       }
-      loginQwIpad({qwUserId: val.id}).then(res => {
+      loginQwIpad({qwUserId: val.id,isNewVersion:isNewVersionBoolean}).then(res => {
         this.qwUserId = val.id;
         this.qwLogin.code = null;
         this.imageLoading = false;