This commit is contained in:
parent
c4f4bd9201
commit
c34cd0356c
|
|
@ -0,0 +1,47 @@
|
||||||
|
<template>
|
||||||
|
<div id="app">
|
||||||
|
<component :is="currentComponent" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
const queryParams = new URLSearchParams(window.location.search);
|
||||||
|
const dataTypeParam = queryParams.get('q');
|
||||||
|
export default {
|
||||||
|
name: 'app',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataType: '',
|
||||||
|
//确保testRes加载好后再加载组件
|
||||||
|
currentComponent: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
// 异步注册两个组件
|
||||||
|
datav: () => import('./components/datav/index.vue'),
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.dataType = dataTypeParam;
|
||||||
|
|
||||||
|
this.currentComponent = 'datav';
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
#app {
|
||||||
|
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
color: #2c3e50;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
//import App from './App.vue'
|
||||||
// import App from './AppV2.vue'
|
// import App from './AppV2.vue'
|
||||||
//import App from './AppV3.vue'
|
//import App from './AppV3.vue'
|
||||||
|
|
||||||
|
//永盛等 简单可配置的版本
|
||||||
|
import App from './AppCommon.vue'
|
||||||
|
|
||||||
|
|
||||||
import ElementUI from 'element-ui'
|
import ElementUI from 'element-ui'
|
||||||
import 'element-ui/lib/theme-chalk/index.css'
|
import 'element-ui/lib/theme-chalk/index.css'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue