Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-09 16:38:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
592c8f38c18ae79aadf70a2211fb7cc195fd02c3
592c8f38
1 parent
6a63e58c
馃悶 fix: 搴曢儴瑙e喅鏂规璺宠浆鍦ㄨВ鍐虫柟妗堥〉闈笉澶勭悊闂
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
src/views/solution/detail.vue
src/views/solution/detail.vue
View file @
592c8f3
<!--
* @Date: 2024-09-29 15:49:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-12-09 1
3:46:50
* @LastEditTime: 2024-12-09 1
6: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');
},
...
...
Please
register
or
login
to post a comment