This commit is contained in:
xielue 2025-11-24 11:06:22 +08:00
parent c4f4bd9201
commit c34cd0356c
2 changed files with 53 additions and 1 deletions

47
src/AppCommon.vue Normal file
View File

@ -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>

View File

@ -1,7 +1,12 @@
import Vue from 'vue'
import App from './App.vue'
//import App from './App.vue'
// import App from './AppV2.vue'
//import App from './AppV3.vue'
//永盛等 简单可配置的版本
import App from './AppCommon.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'