Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
2022-06-20 18:08:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38d28f0c8027a71f1642ea0dbfba7165770cae30
38d28f0c
1 parent
107672f0
fix 弹框现在在有数据之后
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/components/LocalismBox/index.vue
src/components/LocalismBox/index.vue
View file @
38d28f0
<!--
* @Date: 2022-06-20 11:35:50
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-20 17:
06:10
* @LastEditTime: 2022-06-20 17:
45:42
* @FilePath: /tswj/src/components/LocalismBox/index.vue
* @Description: 调整作品方言弹框组件
-->
...
...
@@ -41,7 +41,7 @@
import { ref, watch, nextTick } from 'vue'
import MyButton from '@/components/MyButton/index.vue'
import { localismListModiAPI, addLocalismAPI, modifyProdLocalismAPI } from '@/api/B/localism'
import { Toast, Dialog
, _
} from '@/utils/generatePackage.js'
import { Toast, Dialog } from '@/utils/generatePackage.js'
const props = defineProps({
showLocalism: Boolean,
...
...
@@ -74,13 +74,15 @@ const getLocalismList = async () => {
}
});
scrollToDom(props.localism);
show.value = true;
}
let show = ref(false);
watch(() => props.showLocalism, (v) => {
show.value = v;
if (v) {
getLocalismList()
} else {
show.value = false;
}
})
...
...
Please
register
or
login
to post a comment