登录界面,移除不支持的 T 和 G 登录方式
parent
16ac3686d0
commit
7aa9a1ab36
2
.env
2
.env
|
@ -13,3 +13,5 @@ VITE_GLOB_APP_TENANT_ENABLE = true
|
|||
# 验证码的开关
|
||||
VITE_GLOB_APP_CAPTCHA_ENABLE = true
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777
|
||||
|
|
|
@ -23,3 +23,6 @@ VITE_GLOB_UPLOAD_URL = /upload
|
|||
|
||||
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777
|
||||
|
|
|
@ -23,3 +23,6 @@ VITE_GLOB_UPLOAD_URL = /upload
|
|||
|
||||
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777
|
||||
|
|
|
@ -20,7 +20,10 @@ VITE_GLOB_API_URL = /admin-api
|
|||
VITE_GLOB_UPLOAD_URL = /upload
|
||||
|
||||
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
|
||||
# 打包是否开启pwa功能
|
||||
VITE_USE_PWA = false
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777
|
||||
|
|
|
@ -21,7 +21,10 @@ VITE_GLOB_API_URL = /admin-api
|
|||
VITE_GLOB_UPLOAD_URL = /upload
|
||||
|
||||
# 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
VITE_GLOB_API_URL_PREFIX =
|
||||
|
||||
# 打包是否开启pwa功能
|
||||
VITE_USE_PWA = false
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = eb21166668bf766b9d059a6fd1c10777
|
||||
|
|
|
@ -21,6 +21,8 @@ if (isDevMode()) {
|
|||
import('ant-design-vue/dist/antd.less')
|
||||
}
|
||||
|
||||
import '@/utils/tongji' // 百度统计
|
||||
|
||||
async function bootstrap() {
|
||||
const app = createApp(App)
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
import { router } from '@/router'
|
||||
|
||||
// 用于 router push
|
||||
window._hmt = window._hmt || []
|
||||
// HM_ID
|
||||
const HM_ID = import.meta.env.VITE_APP_BAIDU_CODE
|
||||
;(function () {
|
||||
// 有值的时候,才开启
|
||||
if (!HM_ID) {
|
||||
return
|
||||
}
|
||||
const hm = document.createElement('script')
|
||||
hm.src = 'https://hm.baidu.com/hm.js?' + HM_ID
|
||||
const s = document.getElementsByTagName('script')[0]
|
||||
s.parentNode.insertBefore(hm, s)
|
||||
})()
|
||||
|
||||
router.afterEach(function (to) {
|
||||
if (!HM_ID) {
|
||||
return
|
||||
}
|
||||
_hmt.push(['_trackPageview', to.fullPath])
|
||||
})
|
|
@ -68,8 +68,17 @@
|
|||
<GithubFilled />
|
||||
<WechatFilled />
|
||||
<AlipayCircleFilled />
|
||||
<GoogleCircleFilled />
|
||||
<TwitterCircleFilled />
|
||||
<!-- <GoogleCircleFilled /> -->
|
||||
<!-- <TwitterCircleFilled /> -->
|
||||
</div>
|
||||
|
||||
<!-- 萌新必读 -->
|
||||
<Divider class="enter-x">萌新必读</Divider>
|
||||
<div class="flex justify-evenly enter-x" :class="`${prefixCls}-sign-in-way`">
|
||||
<Button href="https://doc.iocoder.cn/" target="_blank">📚开发指南</Button>
|
||||
<Button href="https://doc.iocoder.cn/video/" target="_blank" style="padding-left: 10px">🔥视频教程</Button>
|
||||
<Button href="https://www.iocoder.cn/Interview/good-collection/" target="_blank" style="padding-left: 10px">⚡面试手册</Button>
|
||||
<Button href="http://static.yudao.iocoder.cn/mp/xinyu370.jpeg" target="_blank" style="padding-left: 10px">🤝外包咨询</Button>
|
||||
</div>
|
||||
</Form>
|
||||
<Verify ref="verify" mode="pop" :captchaType="captchaType" :imgSize="{ width: '400px', height: '200px' }" @success="handleLogin" />
|
||||
|
@ -78,7 +87,7 @@
|
|||
import { reactive, ref, unref, computed } from 'vue'
|
||||
|
||||
import { Checkbox, Form, Input, Row, Col, Button, Divider } from 'ant-design-vue'
|
||||
import { GithubFilled, WechatFilled, AlipayCircleFilled, GoogleCircleFilled, TwitterCircleFilled } from '@ant-design/icons-vue'
|
||||
import { GithubFilled, WechatFilled, AlipayCircleFilled } from '@ant-design/icons-vue'
|
||||
import LoginFormTitle from './LoginFormTitle.vue'
|
||||
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
|
|
Loading…
Reference in New Issue