update
This commit is contained in:
@@ -12,13 +12,6 @@ const props = defineProps({
|
|||||||
show: false
|
show: false
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => props.show, async (newVal) => {
|
|
||||||
if (!newVal) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
fetchImages();
|
|
||||||
})
|
|
||||||
|
|
||||||
const emit = defineEmits(['go-photo-square', 'update:show']);
|
const emit = defineEmits(['go-photo-square', 'update:show']);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
@@ -65,6 +58,13 @@ const fetchImages = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(() => props.show, async (newVal) => {
|
||||||
|
if (!newVal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
fetchImages();
|
||||||
|
}, { immediate: true })
|
||||||
|
|
||||||
|
|
||||||
// 图片数据
|
// 图片数据
|
||||||
const images = ref([]);
|
const images = ref([]);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import vueDevTools from 'vite-plugin-vue-devtools'
|
|||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: 'https://huodong2.lzlj.com/faceFamily/',
|
// base: 'https://huodong2.lzlj.com/faceFamily/',
|
||||||
plugins: [
|
plugins: [
|
||||||
vue({
|
vue({
|
||||||
template: {
|
template: {
|
||||||
|
|||||||
Reference in New Issue
Block a user