利用vue component组件实现不通过路由跳转页面

template部分:

js部分:

	methods: {

		otherScaleJump(val){
			this.allScreenLoading = true
			this.scaleBDShow = true
			this.otherList = (resolve) => {
				require([`${val}`],resolve).finally(() => {
					this.allScreenLoading = false
				})
			}
		},
		//消缺计划
		handleSwitchType({ selectProfessionalType }) {
			if(selectProfessionalType == '01'){
				this.otherScaleJump('./SDSecondaryDetail')
			}else {
				this.otherScaleJump('./PDSecondaryDetail')
			}
			}
		},
}

你可能感兴趣的:(vue.js,javascript,前端)