代码同步

This commit is contained in:
xielue 2025-05-23 18:40:09 +08:00
parent fba56eb861
commit 767f65e19f
1 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,8 @@ export default {
components: {
//
datav2: () => import('./components/baozuo-demo2/index.vue'),
datav: () => import('./components/baozuo-demo/index.vue')
datav: () => import('./components/baozuo-demo/index.vue'),
datav3: () => import('./components/baozuo-demo3/index.vue')
},
created() {
this.dataType = dataTypeParam;
@ -33,7 +34,13 @@ export default {
if (this.dataType == '3') {
this.init();
} else {
this.currentComponent = this.dataType == 4 ? 'datav2' : 'datav';
if (this.dataType == '4') {
this.currentComponent = 'datav2';
} else if (this.dataType == '5') {
this.currentComponent = 'datav3';
} else {
this.currentComponent = 'datav';
}
}