Selaa lähdekoodia

vue3页面调整

lipenghui 5 kuukautta sitten
vanhempi
commit
580480d256
5 muutettua tiedostoa jossa 17 lisäystä ja 15 poistoa
  1. 1 1
      .env
  2. 2 2
      .env.dev
  3. 2 2
      index.html
  4. 1 1
      src/views/Login/Login.vue
  5. 11 9
      src/views/Login/components/LoginForm.vue

+ 1 - 1
.env

@@ -1,5 +1,5 @@
 # 标题
-VITE_APP_TITLE=芋道管理系统
+VITE_APP_TITLE=DeepOil
 
 # 项目本地运行端口号
 VITE_PORT=80

+ 2 - 2
.env.dev

@@ -4,7 +4,7 @@ NODE_ENV=production
 VITE_DEV=true
 
 # 请求路径
-VITE_BASE_URL='http://127.0.0.1:48080'
+VITE_BASE_URL='http://1.94.244.160:91'
 
 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
 VITE_UPLOAD_TYPE=server
@@ -31,7 +31,7 @@ VITE_OUT_DIR=dist
 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
 
 # 验证码的开关
-VITE_APP_CAPTCHA_ENABLE=true
+VITE_APP_CAPTCHA_ENABLE=false
 
 # GoView域名
 VITE_GOVIEW_URL='http://127.0.0.1:3000'

+ 2 - 2
index.html

@@ -8,11 +8,11 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <meta
       name="keywords"
-      content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
+      content="DeepOil"
     />
     <meta
       name="description"
-      content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
+      content="DeepOil"
     />
     <title>%VITE_APP_TITLE%</title>
   </head>

+ 1 - 1
src/views/Login/Login.vue

@@ -44,7 +44,7 @@
 import { useDesign } from '@/hooks/web/useDesign'
 import { useAppStore } from '@/store/modules/app'
 import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
-import bgImage from '@/assets/imgs/loginbg.png'
+import bgImage from '@/assets/imgs/loginindex.jpg'
 import loginBox from '@/assets/imgs/login-box.png'
 import { LoginForm, ForgetPasswordForm } from './components'
 defineOptions({ name: 'Login' })

+ 11 - 9
src/views/Login/components/LoginForm.vue

@@ -95,10 +95,12 @@ import { LoginStateEnum, useFormValid, useLoginState } from './useLogin'
 
 import { ref,nextTick } from 'vue';
 const appId = 'dingik345qmyhtysvs2x'
-const dingRedirectUrl = 'http://1.94.244.160:81/login?loginType=dingding&type=20'
+const dingRedirectUrl = 'http://1.94.244.160:91/login?loginType=dingding&type=20'
 
 const loginType = ref('uname');
-const changeLogin = (type) => {
+const changeLogin = async (type) => {
+  console.log(loginData.loginForm.tenantName)
+  await getTenantId()
   loginType.value = type;
   if (type === 'dingding') {
     initDingLogin();
@@ -203,7 +205,7 @@ const loginData = reactive({
   captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE,
   tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE,
   loginForm: {
-    tenantName: import.meta.env.VITE_APP_DEFAULT_LOGIN_TENANT || '',
+    tenantName: '瑞气能源',
     username: import.meta.env.VITE_APP_DEFAULT_LOGIN_USERNAME || '',
     password: import.meta.env.VITE_APP_DEFAULT_LOGIN_PASSWORD || '',
     captchaVerification: '',
@@ -211,12 +213,12 @@ const loginData = reactive({
   }
 })
 
-const socialList = [
-  { icon: 'ant-design:wechat-filled', type: 30 },
-  { icon: 'ant-design:dingtalk-circle-filled', type: 20 },
-  { icon: 'ant-design:github-filled', type: 0 },
-  { icon: 'ant-design:alipay-circle-filled', type: 0 }
-]
+// const socialList = [
+//   { icon: 'ant-design:wechat-filled', type: 30 },
+//   { icon: 'ant-design:dingtalk-circle-filled', type: 20 },
+//   { icon: 'ant-design:github-filled', type: 0 },
+//   { icon: 'ant-design:alipay-circle-filled', type: 0 }
+// ]
 
 // 获取验证码
 const getCode = async () => {