chore: add APPHOME as route to HOME
This commit is contained in:
parent
965139f626
commit
4cf11fb861
@ -282,7 +282,7 @@ const onNavMenu = (item: string) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onHome = () => {
|
const onHome = () => {
|
||||||
router.push('/home')
|
router.push(useState().APPHOME.value)
|
||||||
}
|
}
|
||||||
const goTopPage = () => {
|
const goTopPage = () => {
|
||||||
const dom_body = document.getElementsByTagName('body')[0]
|
const dom_body = document.getElementsByTagName('body')[0]
|
||||||
|
@ -24,6 +24,8 @@ export const set_config = (res: any) => {
|
|||||||
useState().URLKEY.value = res.URLKEY
|
useState().URLKEY.value = res.URLKEY
|
||||||
if (res && res.APPNAME)
|
if (res && res.APPNAME)
|
||||||
useState().APPNAME.value = res.APPNAME
|
useState().APPNAME.value = res.APPNAME
|
||||||
|
if (res && res.APPHOME)
|
||||||
|
useState().APPHOME.value = res.APPHOME
|
||||||
if (res && res.AUTHKEY)
|
if (res && res.AUTHKEY)
|
||||||
useState().AUTHKEY.value = res.AUTHKEY
|
useState().AUTHKEY.value = res.AUTHKEY
|
||||||
if (res && res.AUTH_SEPCHAR)
|
if (res && res.AUTH_SEPCHAR)
|
||||||
|
@ -102,6 +102,7 @@ const current_model = ref({} as ModelType)
|
|||||||
const current_modelid = ref("")
|
const current_modelid = ref("")
|
||||||
|
|
||||||
const APPNAME = ref('')
|
const APPNAME = ref('')
|
||||||
|
const APPHOME = ref('/')
|
||||||
const AUTHKEY = ref('auth')
|
const AUTHKEY = ref('auth')
|
||||||
const UUIDNONE = ref('none')
|
const UUIDNONE = ref('none')
|
||||||
const TKNLIMIT = ref(20)
|
const TKNLIMIT = ref(20)
|
||||||
@ -172,6 +173,7 @@ export default function useState() {
|
|||||||
sourceRoute,
|
sourceRoute,
|
||||||
// APP CONFIG VARS
|
// APP CONFIG VARS
|
||||||
APPNAME,
|
APPNAME,
|
||||||
|
APPHOME,
|
||||||
AUTHKEY,
|
AUTHKEY,
|
||||||
UUIDNONE,
|
UUIDNONE,
|
||||||
TKNLIMIT,
|
TKNLIMIT,
|
||||||
|
@ -30,6 +30,28 @@ const routes: RouteRecordRaw[] = [
|
|||||||
},
|
},
|
||||||
beforeEnter: [check_config, load_data_info ]
|
beforeEnter: [check_config, load_data_info ]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/cv',
|
||||||
|
name: 'cv',
|
||||||
|
component: Home,
|
||||||
|
meta: {
|
||||||
|
requireAuth: false,
|
||||||
|
layout: 'AppLayout',
|
||||||
|
withauth: false,
|
||||||
|
},
|
||||||
|
beforeEnter: [check_config, load_data_info ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/cv/:ky',
|
||||||
|
name: 'cvKey',
|
||||||
|
component: Home,
|
||||||
|
meta: {
|
||||||
|
requireAuth: false,
|
||||||
|
layout: 'AppLayout',
|
||||||
|
withauth: false,
|
||||||
|
},
|
||||||
|
beforeEnter: [check_config, load_data_info ]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/:ky',
|
path: '/:ky',
|
||||||
name: 'HomeKey',
|
name: 'HomeKey',
|
||||||
|
Loading…
Reference in New Issue
Block a user