Browse Source

feat: 默认值调整为密码登录

zhangyuhan 8 months ago
parent
commit
d47536779c

+ 1 - 1
plugins/login-auth/.env.development

@@ -1,5 +1,5 @@
 VITE_APP_BASE_API='/api'
 VITE_APP_BASE_API='/api'
-VITE_APP_VERSION='1.0.4'
+VITE_APP_VERSION='1.0.5'
 VITE_APP_IMAGE_BASE='https://web2-qmxtest.jydev.jianyu360.com'
 VITE_APP_IMAGE_BASE='https://web2-qmxtest.jydev.jianyu360.com'
 VITE_APP_QR_IMAGE_BASE='https://jybx3-webtest.jydev.jianyu360.com/front/share/'
 VITE_APP_QR_IMAGE_BASE='https://jybx3-webtest.jydev.jianyu360.com/front/share/'
 VITE_APP_APP_PROJECT_BASE='https://app2-jytest.jydev.jianyu360.com'
 VITE_APP_APP_PROJECT_BASE='https://app2-jytest.jydev.jianyu360.com'

+ 1 - 1
plugins/login-auth/.env.external

@@ -1,5 +1,5 @@
 VITE_APP_BASE_API=''
 VITE_APP_BASE_API=''
-VITE_APP_VERSION='1.0.4'
+VITE_APP_VERSION='1.0.5'
 VITE_APP_IMAGE_BASE=''
 VITE_APP_IMAGE_BASE=''
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_APP_PROJECT_BASE=''
 VITE_APP_APP_PROJECT_BASE=''

+ 1 - 1
plugins/login-auth/.env.internal

@@ -1,5 +1,5 @@
 VITE_APP_BASE_API=''
 VITE_APP_BASE_API=''
-VITE_APP_VERSION='1.0.4'
+VITE_APP_VERSION='1.0.5'
 VITE_APP_IMAGE_BASE=''
 VITE_APP_IMAGE_BASE=''
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_APP_PROJECT_BASE=''
 VITE_APP_APP_PROJECT_BASE=''

+ 1 - 1
plugins/login-auth/.env.production

@@ -1,5 +1,5 @@
 VITE_APP_BASE_API=''
 VITE_APP_BASE_API=''
-VITE_APP_VERSION='1.0.4'
+VITE_APP_VERSION='1.0.5'
 VITE_APP_IMAGE_BASE=''
 VITE_APP_IMAGE_BASE=''
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_QR_IMAGE_BASE='/front/share/'
 VITE_APP_APP_PROJECT_BASE=''
 VITE_APP_APP_PROJECT_BASE=''

+ 1 - 1
plugins/login-auth/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@jy/plugin-login-auth",
   "name": "@jy/plugin-login-auth",
-  "version": "1.0.4",
+  "version": "1.0.5",
   "files": [
   "files": [
     "dist"
     "dist"
   ],
   ],

+ 3 - 3
plugins/login-auth/src/lib/pluginLogin.ts

@@ -47,7 +47,7 @@ class PluginLogin {
         preloadDialogImage: false,
         preloadDialogImage: false,
         // 自动打开弹窗
         // 自动打开弹窗
         autoOpen: false,
         autoOpen: false,
-        type: 'login-code',
+        type: 'login-pass',
         // 立即获取二维码并自动监听微信扫码登录
         // 立即获取二维码并自动监听微信扫码登录
         preloadWeChatImage: false
         preloadWeChatImage: false
       },
       },
@@ -86,7 +86,7 @@ class PluginLogin {
    * 根据 type 打开弹窗并通知
    * 根据 type 打开弹窗并通知
    * @param type - 类型
    * @param type - 类型
    */
    */
-  open(type = 'login-code') {
+  open(type = 'login-pass') {
     doChangeTabActive(type)
     doChangeTabActive(type)
     openDialog()
     openDialog()
     this.emit('open', type)
     this.emit('open', type)
@@ -180,7 +180,7 @@ class PluginLogin {
       }
       }
     })
     })
   }
   }
- 
+
   /**
   /**
    * 处理信息相关更新
    * 处理信息相关更新
    * @param type - 类型
    * @param type - 类型

+ 1 - 1
plugins/login-auth/src/lib/pluginLoginAuth.ts

@@ -14,7 +14,7 @@ class pluginLoginAuth {
     this.options = Object.assign(
     this.options = Object.assign(
       {
       {
         auto: false,
         auto: false,
-        type: 'login-code'
+        type: 'login-pass'
       },
       },
       scriptOptions,
       scriptOptions,
       options
       options

+ 1 - 1
plugins/login-auth/src/utils/common.js

@@ -34,7 +34,7 @@ function getScriptOptions() {
   // 获取配置参数
   // 获取配置参数
   const options = {
   const options = {
     auto: false,
     auto: false,
-    type: 'login-code'
+    type: 'login-pass'
   }
   }
 
 
   try {
   try {

+ 1 - 1
plugins/login-auth/src/views/form/register.vue

@@ -253,7 +253,7 @@ const loginCodeFormSchema = {
 
 
       <div
       <div
         class="toggle-login-container flex flex-row items-center justify-center"
         class="toggle-login-container flex flex-row items-center justify-center"
-        @click="doChangeTabActive('login-code')"
+        @click="doChangeTabActive('login-pass')"
       >
       >
         <i class="img-icon icon-blue-back"></i>
         <i class="img-icon icon-blue-back"></i>
         <span>登录</span>
         <span>登录</span>