【发布时间】:2018-09-06 15:12:52
【问题描述】:
嘿,还有一个问题:
我在组中有一个名为组的 div 我在组下面有几个块/div
组(父)在这里:
<div v-if="block.blocktype == 'partial'">
<h1>{{block.name}}</h1>
<component v-if="block.template_path" :is="block.template_path" :key="block.template_path" v-bind:bduuid="block.uuid" v-bind:block_data="block.block_data">
</component>
</div>
这样的div组件:
<v-date-picker
ref="picker"
v-model="date"
:picker-date.sync="pickerDate"
:events="arrayEvents"
event-color="green lighten-1"
full-width
reactive="true"
:locale="this.localication"
></v-date-picker>
</div>
<span style="color: blue;" @click="CreateNewAppintmentFunction()">Create new Appointment</span>
所以现在我想在点击后将子视图从“显示”更改为“新”
this.$router.push("appointment/quickedit");the
CreateNewAppintmentFunction()
任何人知道如何将路由器路径从“显示约会”更改为“新约会”
非常感谢
【问题讨论】:
标签: vue.js vuejs2 vue-component vuex vue-router