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(() => { .then(() => {
userStore.logOut().then(() => { userStore.logOut().then(() => {
location.href = '/intc/index' location.href = '/imaotai/index'
}) })
}) })
.catch(() => {}) .catch(() => {})

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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