am-freescan/am-web/tests/platform-brand-ui.html

22 lines
1.3 KiB
HTML
Raw Normal View History

<!doctype html><html lang="zh-CN"><meta charset="UTF-8"><title>平台品牌检查</title><div id="app"></div>
<script type="module">
import {createApp,h} from 'vue'
import {createRouter,createMemoryHistory} from 'vue-router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '/src/styles/index.scss'
import 'virtual:uno.css'
import {setupStore} from '/src/store/index.ts'
import {setupI18n} from '/src/plugins/vueI18n/index.ts'
import Logo from '/src/layout/components/Logo/src/Logo.vue'
import SidebarBrand from '/src/layout/components/SidebarBrand/src/SidebarBrand.vue'
import {useAppStore} from '/src/store/modules/app.ts'
const app=createApp({setup(){
const store=useAppStore();store.setCollapse(false)
return()=>h('main',[h('h2','平台品牌检查'),h('p','实际侧栏组件,不请求业务或设备接口。'),
h('aside',{style:{width:'220px',background:'var(--left-menu-bg-color)',color:'var(--logo-title-text-color)'}},[h(Logo),h(SidebarBrand)])])
}})
setupStore(app);await setupI18n(app);app.use(ElementPlus)
app.use(createRouter({history:createMemoryHistory(),routes:[{path:'/',component:{render:()=>null}}]}));app.mount('#app')
</script><style>body{margin:24px;color:var(--el-text-color-primary);background:var(--el-bg-color);font:14px system-ui}</style></html>