mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-02-13 17:30:27 +08:00
perf: 优化标签页操作-路由传参模式用法
This commit is contained in:
@@ -56,10 +56,17 @@ function onCloseTags() {
|
||||
class="m-2"
|
||||
v-for="index in 6"
|
||||
:key="index"
|
||||
@click="toDetail(index, 'query')"
|
||||
@click="toDetail({ id: index }, 'query')"
|
||||
>
|
||||
打开{{ index }}详情页
|
||||
</el-button>
|
||||
<el-button
|
||||
@click="
|
||||
toDetail({ id: 666, name: '小明', age: 18, job: '工程师' }, 'query')
|
||||
"
|
||||
>
|
||||
多个参数
|
||||
</el-button>
|
||||
</div>
|
||||
|
||||
<el-divider />
|
||||
@@ -70,7 +77,7 @@ function onCloseTags() {
|
||||
class="m-2"
|
||||
v-for="index in 6"
|
||||
:key="index"
|
||||
@click="toDetail(index, 'params')"
|
||||
@click="toDetail({ id: index }, 'params')"
|
||||
>
|
||||
打开{{ index }}详情页
|
||||
</el-button>
|
||||
|
||||
Reference in New Issue
Block a user