Showing
1 changed file
with
5 additions
and
3 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 17:06:10 | 4 | + * @LastEditTime: 2022-06-20 17:45:42 |
| 5 | * @FilePath: /tswj/src/components/LocalismBox/index.vue | 5 | * @FilePath: /tswj/src/components/LocalismBox/index.vue |
| 6 | * @Description: 调整作品方言弹框组件 | 6 | * @Description: 调整作品方言弹框组件 |
| 7 | --> | 7 | --> |
| ... | @@ -41,7 +41,7 @@ | ... | @@ -41,7 +41,7 @@ |
| 41 | import { ref, watch, nextTick } from 'vue' | 41 | import { ref, watch, nextTick } from 'vue' |
| 42 | import MyButton from '@/components/MyButton/index.vue' | 42 | import MyButton from '@/components/MyButton/index.vue' |
| 43 | import { localismListModiAPI, addLocalismAPI, modifyProdLocalismAPI } from '@/api/B/localism' | 43 | import { localismListModiAPI, addLocalismAPI, modifyProdLocalismAPI } from '@/api/B/localism' |
| 44 | -import { Toast, Dialog, _ } from '@/utils/generatePackage.js' | 44 | +import { Toast, Dialog } from '@/utils/generatePackage.js' |
| 45 | 45 | ||
| 46 | const props = defineProps({ | 46 | const props = defineProps({ |
| 47 | showLocalism: Boolean, | 47 | showLocalism: Boolean, |
| ... | @@ -74,13 +74,15 @@ const getLocalismList = async () => { | ... | @@ -74,13 +74,15 @@ const getLocalismList = async () => { |
| 74 | } | 74 | } |
| 75 | }); | 75 | }); |
| 76 | scrollToDom(props.localism); | 76 | scrollToDom(props.localism); |
| 77 | + show.value = true; | ||
| 77 | } | 78 | } |
| 78 | 79 | ||
| 79 | let show = ref(false); | 80 | let show = ref(false); |
| 80 | watch(() => props.showLocalism, (v) => { | 81 | watch(() => props.showLocalism, (v) => { |
| 81 | - show.value = v; | ||
| 82 | if (v) { | 82 | if (v) { |
| 83 | getLocalismList() | 83 | getLocalismList() |
| 84 | + } else { | ||
| 85 | + show.value = false; | ||
| 84 | } | 86 | } |
| 85 | }) | 87 | }) |
| 86 | 88 | ... | ... |
-
Please register or login to post a comment