diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index a5b72cb..7bbb5f5 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -82,7 +82,7 @@ function logout() { }) .then(() => { userStore.logOut().then(() => { - location.href = '/intc/index' + location.href = '/imaotai/index' }) }) .catch(() => {}) diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 5170f43..20da593 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -52,7 +52,7 @@ getDefaultTitle() const title = ref('') function getDefaultTitle() { - getConfigKey('defaultTitle').then((res) => { + getConfigKey('imaotaiTitle').then((res) => { title.value = res.msg }) } diff --git a/src/router/index.js b/src/router/index.js index 7cb34e5..df1a959 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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) { diff --git a/src/utils/dynamicTitle.js b/src/utils/dynamicTitle.js index 8869369..4364ec4 100644 --- a/src/utils/dynamicTitle.js +++ b/src/utils/dynamicTitle.js @@ -17,7 +17,7 @@ export function useDynamicTitle() { let title = defaultSettings.title function getDefaultTitle() { - getConfigKey('defaultTitle').then((res) => { + getConfigKey('imaotaiTitle').then((res) => { title = res.msg }) } diff --git a/src/utils/request.js b/src/utils/request.js index 9f802b3..4ce9d00 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -92,7 +92,7 @@ service.interceptors.response.use( useUserStore() .logOut() .then(() => { - location.href = '/intc/index' + location.href = '/imaotai/index' }) }) .catch(() => { diff --git a/src/views/login.vue b/src/views/login.vue index 0aad532..66988f8 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -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 }) diff --git a/src/views/register.vue b/src/views/register.vue index 39db365..c292b9d 100644 --- a/src/views/register.vue +++ b/src/views/register.vue @@ -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 diff --git a/vite.config.js b/vite.config.js index 18c8893..2fe46a1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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'),