hookehuyr

馃悶 fix: 搴曢儴瑙e喅鏂规璺宠浆鍦ㄨВ鍐虫柟妗堥〉闈笉澶勭悊闂

<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-09 13:46:50
* @LastEditTime: 2024-12-09 16:36:59
* @FilePath: /hager/src/views/solution/detail.vue
* @Description: 鏂囦欢鎻忚堪
-->
......@@ -212,7 +212,18 @@ export default {
category_description: '',
}
},
async mounted () {
mounted () {
this.initialize();
},
watch: {
'$route.query.id' (old, val) {
if (old !== val) {
this.initialize();
}
}
},
methods: {
async initialize () {
const { code, data } = await getSolutionCaseAPI({ cid: this.$route.query.id });
if (code) {
this.case_info = data;
......@@ -234,7 +245,6 @@ export default {
clampText('.clamp-text', 3); // 闄愬埗鏄剧ず涓夎鏂囨湰
});
},
methods: {
onClickImg (item) {
window.open(item, '_blank');
},
......