chore: add APPHOME as route to HOME
This commit is contained in:
		
							parent
							
								
									d16a0ce958
								
							
						
					
					
						commit
						860055bd8e
					
				| @ -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)  | ||||||
|  | |||||||
| @ -103,6 +103,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) | ||||||
| @ -179,6 +180,7 @@ export default function useState() { | |||||||
| 
 | 
 | ||||||
| 		// APP CONFIG VARS
 | 		// APP CONFIG VARS
 | ||||||
| 		APPNAME, | 		APPNAME, | ||||||
|  | 		APPHOME, | ||||||
| 		AUTHKEY, | 		AUTHKEY, | ||||||
| 		UUIDNONE, | 		UUIDNONE, | ||||||
| 		TKNLIMIT, | 		TKNLIMIT, | ||||||
|  | |||||||
| @ -74,6 +74,16 @@ const routes: RouteRecordRaw[] = [ | |||||||
| 		}, | 		}, | ||||||
| 		beforeEnter: check_auth,		 | 		beforeEnter: check_auth,		 | ||||||
| 	}, | 	}, | ||||||
|  | 	{ | ||||||
|  | 		path: '/genadmin', | ||||||
|  | 		name: 'genadmin', | ||||||
|  | 		component: Home, | ||||||
|  | 		meta: { | ||||||
|  | 			ctx: 'home', | ||||||
|  | 		  withauth: true, | ||||||
|  | 		}, | ||||||
|  | 		beforeEnter: check_auth,		 | ||||||
|  | 	}, | ||||||
| 	{ | 	{ | ||||||
| 		path: '/', | 		path: '/', | ||||||
| 		name: 'Home', | 		name: 'Home', | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user