fix: 茅台预约平台,登录界面修改。

This commit is contained in:
tianyongbao
2024-12-12 14:14:44 +08:00
parent 7102afc8c3
commit bb9ea1d58e
8 changed files with 11 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ function logout() {
})
.then(() => {
userStore.logOut().then(() => {
location.href = '/intc/index'
location.href = '/imaotai/index'
})
})
.catch(() => {})

View File

@@ -52,7 +52,7 @@ getDefaultTitle()
const title = ref('')
function getDefaultTitle() {
getConfigKey('defaultTitle').then((res) => {
getConfigKey('imaotaiTitle').then((res) => {
title.value = res.msg
})
}

View File

@@ -65,7 +65,7 @@ export const constantRoutes = [
{
path: '',
component: Layout,
redirect: '/accountCalendar'
redirect: '/imaotai/iuser'
// children: [
// {
// path: '/index',
@@ -179,7 +179,7 @@ export const dynamicRoutes = [
]
const router = createRouter({
history: createWebHistory('/intc/'),
history: createWebHistory('/imaotai/'),
routes: constantRoutes,
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {

View File

@@ -17,7 +17,7 @@ export function useDynamicTitle() {
let title = defaultSettings.title
function getDefaultTitle() {
getConfigKey('defaultTitle').then((res) => {
getConfigKey('imaotaiTitle').then((res) => {
title = res.msg
})
}

View File

@@ -92,7 +92,7 @@ service.interceptors.response.use(
useUserStore()
.logOut()
.then(() => {
location.href = '/intc/index'
location.href = '/imaotai/index'
})
})
.catch(() => {

View File

@@ -130,13 +130,13 @@ function getCode() {
}
function getDefaultBg() {
getConfigKey('defaultBg').then((res) => {
getConfigKey('imaotaiBg').then((res) => {
defaultBg.value = res.msg
})
}
function getDefaultTitle() {
getConfigKey('defaultTitle').then((res) => {
getConfigKey('imaotaiTitle').then((res) => {
title.value = res.msg
document.title = res.msg
})

View File

@@ -52,7 +52,7 @@ const { proxy } = getCurrentInstance()
const registerForm = ref({
username: '',
password: '',
resource: '1',
resource: '3',
confirmPassword: '',
code: '',
uuid: ''
@@ -87,7 +87,7 @@ const loading = ref(false)
const captchaEnabled = ref(true)
function handleRegister() {
registerForm.value.resource = '1'
registerForm.value.resource = '3'
proxy.$refs.registerRef.validate((valid) => {
if (valid) {
loading.value = true

View File

@@ -19,7 +19,7 @@ export default defineConfig(({ mode, command }) => {
// 部署生产环境和开发环境下的URL。
// 默认情况下vite 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
base: VITE_APP_ENV === 'production' ? '/intc/' : '/intc/',
base: VITE_APP_ENV === 'production' ? '/imaotai/' : '/imaotai/',
// base: '/invest/',
// base: '/',
plugins: createVitePlugins(env, command === 'build'),