src/components/smallModule/NewTest.vue
@@ -8,7 +8,7 @@ </div> </div> <div class="new-test-content"> <el-button class="block-button" type="primary" size="small" :disabled="!to">新建试验</el-button> <el-button class="block-button" type="primary" size="small" :disabled="!to" @click="routeTo">新建试验</el-button> </div> </div> </template> @@ -46,6 +46,11 @@ } }, methods: { routeTo() { this.$router.push(this.to); } }, computed: { url(){ let url = "";