提交 af6bd001 authored 作者: lidongxu's avatar lidongxu

refactor(ceshi): cehsi

上级 8e5b58f9
......@@ -101,6 +101,7 @@ const rightChange = (val) => {
height: 100%;
.el-card__header {
font-size: 18px;
.custom {
float: right;
padding: 3px 0;
......
......@@ -77,7 +77,7 @@ const getLogoTextColor = computed(() => {
// width: 32px;
// height: 32px;
width: 120px;
height: 60px;
height: 68px;
vertical-align: middle;
// margin-right: 12px;
}
......
......@@ -2,7 +2,7 @@ import { createWebHashHistory, createRouter, createWebHistory } from 'vue-router
/* Layout */
import Layout from '@/layout'
import { isMobile } from '@/utils'
import { constantMobileRoutes } from '@/views/mobile/router/index.js'
import { constantMobileRoutes } from '@/views/mobile/router/index.js' // 移动端路由表
/**
* Note: 路由配置项
......@@ -26,21 +26,40 @@ import { constantMobileRoutes } from '@/views/mobile/router/index.js'
}
*/
// 使用的公共静态路由
export let constantRoutes = [{
path: '/report/jmreport/view/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
},
{
path: '/report/jmreport/index/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
},
{
path: '/report/jmreport/shareView/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
}]
export let constantRoutes = [
{
path: '/ceshi',
component: () => import('@/views/ceshi.vue'),
hidden: true
},
{
path: '',
component: Layout,
redirect: '/index',
children: [
{
path: '/index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
}
]
},
{
path: '/report/jmreport/view/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
},
{
path: '/report/jmreport/index/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
},
{
path: '/report/jmreport/shareView/:id',
component: () => import('@/views/jimureport/entry.vue'),
hidden: true
}]
// PC端 静态路由
export const constantPCRoutes = [
...constantRoutes,
......@@ -70,19 +89,7 @@ export const constantPCRoutes = [
component: () => import('@/views/error/401'),
hidden: true
},
{
path: '',
component: Layout,
redirect: '/index',
children: [
{
path: '/index',
component: () => import('@/views/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
}
]
},
{
path: '/user',
component: Layout,
......
<template>
<iframe class="ifame-tag"
:src="url"></iframe>
</template>
<script setup>
const url = computed(() => {
const key = '988ff83d-ea13-45fd-9890-87f107644fbe'
return `https://bi.aliyun.com/token3rd/dashboard/view/pc.htm?pageId=c3442504-ef1c-4eee-8cf9-691526c09524&embedDisplayParam=%7B%22showTitle%22%3Afalse%7D&accessTicket=${key}`
})
</script>
<style scoped lang="scss">
.ifame-tag {
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
// 移动端 静态路由
export const constantMobileRoutes = [
{
path: '/index',
redirect: '/menu'
},
{
path: '/login',
component: () => import('@/views/login'),
......@@ -18,7 +14,6 @@ export const constantMobileRoutes = [
{
path: '/',
component: () => import('@/views/mobile/index'),
redirect: '/menu',
children: [
{
path: 'menu',// 菜单页
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论