修改地址

This commit is contained in:
Leo_Ding 2025-06-20 15:39:30 +08:00
parent 38e2fca3f8
commit 697d936578
5 changed files with 20 additions and 17 deletions

View File

@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash VITE_ROUTER_HISTORY=hash
# api # api
VITE_API_BASIC=http://10.10.1.6:8060 VITE_API_BASIC=https://api.hailin-keji.com
VITE_API_HTTP=/api/v1/ VITE_API_HTTP=/api/v1/
# storage # storage
VITE_STORAGE_NAMESPACE = gin-admin_local_ VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -11,7 +11,7 @@ VITE_PERMISSION=true
VITE_ROUTER_HISTORY=hash VITE_ROUTER_HISTORY=hash
# api # api
VITE_API_BASIC=/ VITE_API_BASIC=https://api.hailin-keji.com
VITE_API_HTTP=/api/v1/ VITE_API_HTTP=/api/v1/
# storage # storage

View File

@ -1,6 +1,6 @@
export default { export default {
'pages.layouts.userLayout.title': 'pages.layouts.userLayout.title':
'轻量级、灵活、优雅且功能齐全的脚手架。', '成为中国领先的新型饲用蛋白供应商',
'pages.login.accountLogin.tab': '账户密码登录', 'pages.login.accountLogin.tab': '账户密码登录',
'pages.login.failure': '登录失败,请重试!', 'pages.login.failure': '登录失败,请重试!',
'pages.login.success': '登录成功!', 'pages.login.success': '登录成功!',

View File

@ -73,7 +73,10 @@ export function formatRoutes(routes = [], parent = {}) {
const modules = import.meta.glob('../views/**/*.vue') const modules = import.meta.glob('../views/**/*.vue')
return routes return routes
.map((item) => { .map((item) => {
console.log(111)
const localRoute = find(toList(localRoutes), { name: item.name }) const localRoute = find(toList(localRoutes), { name: item.name })
console.log(222,localRoute)
if (!localRoute) return if (!localRoute) return
const component = localRoute?.component || 'exception/404' const component = localRoute?.component || 'exception/404'
const isLink = localRoute?.meta?.type === 'link' const isLink = localRoute?.meta?.type === 'link'

View File

@ -20,7 +20,7 @@
</template> </template>
</a-input> </a-input>
</a-form-item> </a-form-item>
<a-form-item name="captcha_code"> <!-- <a-form-item name="captcha_code">
<a-space> <a-space>
<a-input v-model:value="formData.captcha_code" size="large" type="text" <a-input v-model:value="formData.captcha_code" size="large" type="text"
:placeholder="$t('pages.login.captcha.placeholder')" @pressEnter="handleLogin"> :placeholder="$t('pages.login.captcha.placeholder')" @pressEnter="handleLogin">
@ -31,7 +31,7 @@
<a-image @click="getCaptcha" :preview="false" :width="140" :height="42" <a-image @click="getCaptcha" :preview="false" :width="140" :height="42"
:src="captcha_img" /> :src="captcha_img" />
</a-space> </a-space>
</a-form-item> </a-form-item> -->
<a-form-item> <a-form-item>
<a-button type="primary" size="large" block :loading="loading" @click="handleLogin">{{ <a-button type="primary" size="large" block :loading="loading" @click="handleLogin">{{
$t('pages.login.submit') }} $t('pages.login.submit') }}
@ -145,18 +145,18 @@ function getFirstValidRoute() {
* 去首页 * 去首页
*/ */
function goIndex() { function goIndex() {
router.push('/home') // router.push('/home')
// if (redirect.value) { if (redirect.value) {
// location.href = redirect.value location.href = redirect.value
// } else { } else {
// const indexRoute = getFirstValidRoute() const indexRoute = getFirstValidRoute()
// if (!indexRoute) return if (!indexRoute) return
// router.push(indexRoute) router.push(indexRoute)
// } }
// notification.success({ notification.success({
// message: t('welcome'), message: t('welcome'),
// description: `${timeFix()}${t('home')}`, // description: `${timeFix()}${t('home')}`,
// }) })
} }
</script> </script>