|
|
@@ -103,6 +103,8 @@ import Cookies from 'js-cookie'
|
|
|
import { ElMessageBox } from 'element-plus'
|
|
|
import { getCodeImg } from '@/api/login'
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
+// 放在 src/assets 下由 Vite 打包为带内容 hash 的文件名,改图后 URL 自动变化,避免浏览器 7 天强缓存导致旧图
|
|
|
+import mobileAppQrUrl from '@/assets/images/mobile-app-qr.png'
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
const router = useRouter()
|
|
|
@@ -123,7 +125,6 @@ const codeUrl = ref('')
|
|
|
const loading = ref(false)
|
|
|
const captchaEnabled = ref(true)
|
|
|
const qrAvailable = ref(true)
|
|
|
-const mobileAppQrUrl = `${import.meta.env.BASE_URL}images/mobile-app-qr.png`
|
|
|
|
|
|
async function handleLogin() {
|
|
|
if (loading.value) return
|