workbranch改为application
This commit is contained in:
		
							parent
							
								
									9efc52137a
								
							
						
					
					
						commit
						869e1bb9cb
					
				@ -190,7 +190,7 @@ service.interceptors.response.use(
 | 
			
		||||
        })
 | 
			
		||||
        if (response.data.code === 80001) {
 | 
			
		||||
          localStorage.clear()
 | 
			
		||||
          let queryRedirectPath = '/workbranch/index'
 | 
			
		||||
          let queryRedirectPath = '/application/index'
 | 
			
		||||
          if (router.currentRoute.value.fullPath) {
 | 
			
		||||
            queryRedirectPath = router.currentRoute.value.fullPath as string
 | 
			
		||||
          }
 | 
			
		||||
@ -248,7 +248,7 @@ service.interceptors.response.use(
 | 
			
		||||
      localStorage.clear()
 | 
			
		||||
      const flag = header.get('DE-GATEWAY-FLAG')
 | 
			
		||||
      localStorage.setItem('DE-GATEWAY-FLAG', flag.toString())
 | 
			
		||||
      let queryRedirectPath = '/workbranch/index'
 | 
			
		||||
      let queryRedirectPath = '/application/index'
 | 
			
		||||
      if (router.currentRoute.value.fullPath) {
 | 
			
		||||
        queryRedirectPath = router.currentRoute.value.fullPath as string
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
@ -73,7 +73,7 @@ router.beforeEach(async (to, from, next) => {
 | 
			
		||||
      await userStore.setUser()
 | 
			
		||||
    }
 | 
			
		||||
    if (to.path === '/login') {
 | 
			
		||||
      next({ path: '/workbranch/index' })
 | 
			
		||||
      next({ path: '/application/index' })
 | 
			
		||||
    } else {
 | 
			
		||||
      permissionStore.setCurrentPath(to.path)
 | 
			
		||||
      if (permissionStore.getIsAddRouters) {
 | 
			
		||||
 | 
			
		||||
@ -1,11 +1,11 @@
 | 
			
		||||
import { isExternal } from '@/utils/validate'
 | 
			
		||||
import { cloneDeep } from 'lodash'
 | 
			
		||||
import { XpackComponent } from '@/components/plugin'
 | 
			
		||||
// const modules = import.meta.glob('../viewsnew/**/*.vue')
 | 
			
		||||
// export const Layout = () => import('@/viewsnew/layout/index.vue')
 | 
			
		||||
const modules = import.meta.glob('../viewsnew/**/*.vue')
 | 
			
		||||
export const Layout = () => import('@/viewsnew/layout/index.vue')
 | 
			
		||||
 | 
			
		||||
const modules = import.meta.glob('../views/**/*.vue')
 | 
			
		||||
export const Layout = () => import('@/layout/index.vue')
 | 
			
		||||
// const modules = import.meta.glob('../views/**/*.vue')
 | 
			
		||||
// export const Layout = () => import('@/layout/index.vue')
 | 
			
		||||
 | 
			
		||||
const xpackComName = 'components/plugin'
 | 
			
		||||
export const LayoutTransition = () => import('@/layout/components/LayoutTransition.vue')
 | 
			
		||||
@ -42,8 +42,8 @@ export const generateRoutesFn2 = (routes: AppCustomRouteRecordRaw[]): AppRouteRe
 | 
			
		||||
      if (route.component === xpackComName) {
 | 
			
		||||
        comModule = XpackComponent
 | 
			
		||||
      } else if (!route.component.startsWith('Layout')) {
 | 
			
		||||
        comModule = modules[`../views/${route.component}/index.vue`]
 | 
			
		||||
        // comModule = modules[`../viewsnew/${route.component}/index.vue`]
 | 
			
		||||
        // comModule = modules[`../views/${route.component}/index.vue`]
 | 
			
		||||
        comModule = modules[`../viewsnew/${route.component}/index.vue`]
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if (route.component === 'Layout') {
 | 
			
		||||
 | 
			
		||||
@ -6,16 +6,16 @@ export const routes: AppRouteRecordRaw[] = [
 | 
			
		||||
  {
 | 
			
		||||
    path: '/',
 | 
			
		||||
    name: 'index',
 | 
			
		||||
    redirect: '/workbranch/index',
 | 
			
		||||
    component: () => import('@/layout/index.vue'),
 | 
			
		||||
    redirect: '/application/index',
 | 
			
		||||
    component: () => import('@/viewsnew/layout/index.vue'),
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    meta: {},
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: 'workbranch',
 | 
			
		||||
        name: 'workbranch',
 | 
			
		||||
        path: 'application',
 | 
			
		||||
        name: 'application',
 | 
			
		||||
        hidden: true,
 | 
			
		||||
        component: () => import('@/views/workbranch/index.vue'),
 | 
			
		||||
        component: () => import('@/viewsnew/application/index.vue'),
 | 
			
		||||
        meta: { hidden: true }
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
@ -171,13 +171,13 @@ export const routes: AppRouteRecordRaw[] = [
 | 
			
		||||
    meta: {},
 | 
			
		||||
    component: () => import('@/viewsnew/data-visualization/index.vue')
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: '/application',
 | 
			
		||||
    name: 'application',
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    meta: {},
 | 
			
		||||
    component: () => import('@/viewsnew/application/index.vue')
 | 
			
		||||
  },
 | 
			
		||||
  // {
 | 
			
		||||
  //   path: '/application',
 | 
			
		||||
  //   name: 'application',
 | 
			
		||||
  //   hidden: true,
 | 
			
		||||
  //   meta: {},
 | 
			
		||||
  //   component: () => import('@/viewsnew/application/index.vue')
 | 
			
		||||
  // },
 | 
			
		||||
  {
 | 
			
		||||
    path: '/datasetnew',
 | 
			
		||||
    name: 'datasetnew',
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ export const logoutHandler = (justClean?: boolean) => {
 | 
			
		||||
  interactiveStore.clear()
 | 
			
		||||
  interactiveStore.$reset()
 | 
			
		||||
  removeCache()
 | 
			
		||||
  let queryRedirectPath = '/workbranch/index'
 | 
			
		||||
  let queryRedirectPath = '/application/index'
 | 
			
		||||
  // 如果redirect参数中有值
 | 
			
		||||
  if (router.currentRoute.value.fullPath) {
 | 
			
		||||
    queryRedirectPath = router.currentRoute.value.fullPath as string
 | 
			
		||||
 | 
			
		||||
@ -60,7 +60,7 @@ const rules = reactive<FormRules>({
 | 
			
		||||
const activeName = ref('simple')
 | 
			
		||||
 | 
			
		||||
const getCurLocation = () => {
 | 
			
		||||
  let queryRedirectPath = '/workbranch/index'
 | 
			
		||||
  let queryRedirectPath = '/application/index'
 | 
			
		||||
  if (router.currentRoute.value.query.redirect) {
 | 
			
		||||
    queryRedirectPath = router.currentRoute.value.query.redirect as string
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user