File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/views/mall/product/property Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 73
73
>
74
74
编辑
75
75
</el-button >
76
- <el-button link type =" primary" >
77
- <router-link :to =" '/property/value/' + scope.row.id" >属性值</router-link >
78
- </el-button >
76
+ <el-button link type =" primary" @click =" goValueList(scope.row.id)" >属性值</el-button >
79
77
<el-button
80
78
v-hasPermi =" ['product:property:delete']"
81
79
link
103
101
import { dateFormatter } from ' @/utils/formatTime'
104
102
import * as PropertyApi from ' @/api/mall/product/property'
105
103
import PropertyForm from ' ./PropertyForm.vue'
104
+ const { push } = useRouter ()
106
105
107
106
defineOptions ({ name: ' ProductProperty' })
108
107
@@ -163,6 +162,11 @@ const handleDelete = async (id: number) => {
163
162
} catch {}
164
163
}
165
164
165
+ /** 跳转商品属性列表 */
166
+ const goValueList = (id : number ) => {
167
+ push ({ path: ' /property/value/' + id })
168
+ }
169
+
166
170
/** 初始化 **/
167
171
onMounted (() => {
168
172
getList ()
You can’t perform that action at this time.
0 commit comments