generated from Leo_Ding/web-template
修改地址
This commit is contained in:
parent
38e2fca3f8
commit
697d936578
2
.env.dev
2
.env.dev
@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/
|
||||
VITE_ROUTER_HISTORY=hash
|
||||
|
||||
# api
|
||||
VITE_API_BASIC=http://10.10.1.6:8060
|
||||
VITE_API_BASIC=https://api.hailin-keji.com
|
||||
VITE_API_HTTP=/api/v1/
|
||||
# storage
|
||||
VITE_STORAGE_NAMESPACE = gin-admin_local_
|
||||
@ -11,7 +11,7 @@ VITE_PERMISSION=true
|
||||
VITE_ROUTER_HISTORY=hash
|
||||
|
||||
# api
|
||||
VITE_API_BASIC=/
|
||||
VITE_API_BASIC=https://api.hailin-keji.com
|
||||
VITE_API_HTTP=/api/v1/
|
||||
|
||||
# storage
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'pages.layouts.userLayout.title':
|
||||
'轻量级、灵活、优雅且功能齐全的脚手架。',
|
||||
'成为中国领先的新型饲用蛋白供应商',
|
||||
'pages.login.accountLogin.tab': '账户密码登录',
|
||||
'pages.login.failure': '登录失败,请重试!',
|
||||
'pages.login.success': '登录成功!',
|
||||
|
||||
@ -73,7 +73,10 @@ export function formatRoutes(routes = [], parent = {}) {
|
||||
const modules = import.meta.glob('../views/**/*.vue')
|
||||
return routes
|
||||
.map((item) => {
|
||||
console.log(111)
|
||||
const localRoute = find(toList(localRoutes), { name: item.name })
|
||||
console.log(222,localRoute)
|
||||
|
||||
if (!localRoute) return
|
||||
const component = localRoute?.component || 'exception/404'
|
||||
const isLink = localRoute?.meta?.type === 'link'
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item name="captcha_code">
|
||||
<!-- <a-form-item name="captcha_code">
|
||||
<a-space>
|
||||
<a-input v-model:value="formData.captcha_code" size="large" type="text"
|
||||
:placeholder="$t('pages.login.captcha.placeholder')" @pressEnter="handleLogin">
|
||||
@ -31,7 +31,7 @@
|
||||
<a-image @click="getCaptcha" :preview="false" :width="140" :height="42"
|
||||
:src="captcha_img" />
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
</a-form-item> -->
|
||||
<a-form-item>
|
||||
<a-button type="primary" size="large" block :loading="loading" @click="handleLogin">{{
|
||||
$t('pages.login.submit') }}
|
||||
@ -145,18 +145,18 @@ function getFirstValidRoute() {
|
||||
* 去首页
|
||||
*/
|
||||
function goIndex() {
|
||||
router.push('/home')
|
||||
// if (redirect.value) {
|
||||
// location.href = redirect.value
|
||||
// } else {
|
||||
// const indexRoute = getFirstValidRoute()
|
||||
// if (!indexRoute) return
|
||||
// router.push(indexRoute)
|
||||
// }
|
||||
// notification.success({
|
||||
// message: t('welcome'),
|
||||
// router.push('/home')
|
||||
if (redirect.value) {
|
||||
location.href = redirect.value
|
||||
} else {
|
||||
const indexRoute = getFirstValidRoute()
|
||||
if (!indexRoute) return
|
||||
router.push(indexRoute)
|
||||
}
|
||||
notification.success({
|
||||
message: t('welcome'),
|
||||
// description: `${timeFix()},${t('home')}`,
|
||||
// })
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user