Showing
1 changed file
with
2 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-06-20 11:35:50 | 2 | * @Date: 2022-06-20 11:35:50 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-06-20 18:13:28 | 4 | + * @LastEditTime: 2022-06-20 19:04:18 |
| 5 | * @FilePath: /tswj/src/components/LocalismBox/index.vue | 5 | * @FilePath: /tswj/src/components/LocalismBox/index.vue |
| 6 | * @Description: 调整作品方言弹框组件 | 6 | * @Description: 调整作品方言弹框组件 |
| 7 | --> | 7 | --> |
| ... | @@ -73,15 +73,13 @@ const getLocalismList = async () => { | ... | @@ -73,15 +73,13 @@ const getLocalismList = async () => { |
| 73 | } | 73 | } |
| 74 | }); | 74 | }); |
| 75 | scrollToDom(props.localism); | 75 | scrollToDom(props.localism); |
| 76 | - show.value = true; | ||
| 77 | } | 76 | } |
| 78 | 77 | ||
| 79 | let show = ref(false); | 78 | let show = ref(false); |
| 80 | watch(() => props.showLocalism, (v) => { | 79 | watch(() => props.showLocalism, (v) => { |
| 80 | + show.value = v; | ||
| 81 | if (v) { | 81 | if (v) { |
| 82 | getLocalismList() | 82 | getLocalismList() |
| 83 | - } else { | ||
| 84 | - show.value = false; | ||
| 85 | } | 83 | } |
| 86 | }) | 84 | }) |
| 87 | 85 | ... | ... |
-
Please register or login to post a comment