other components... (2)

This commit is contained in:
Paolo Arena
2021-09-16 21:08:02 +02:00
parent fcc4f61f07
commit f351673917
276 changed files with 17183 additions and 3371 deletions

View File

@@ -1,4 +1,4 @@
import { defineComponent, onMounted, ref, watch } from 'vue'
import { defineComponent, onMounted, ref, toRef, watch } from 'vue'
import { useUserStore } from '@store/UserStore'
export default defineComponent({
@@ -23,6 +23,7 @@ export default defineComponent({
const userStore = useUserStore()
const imgprofile = ref(userStore.my.profile.img)
const myimgvar = toRef(props, 'myimg')
function refresh() {
if (!props.myimg) {
@@ -44,10 +45,7 @@ export default defineComponent({
watch(
// @ts-ignore
props.myimg,
// @ts-ignore
(value: string, oldValue: string) => {
myimgvar, (value: string, oldValue: string) => {
myimgint.value = ''
refresh()
},
@@ -57,6 +55,7 @@ export default defineComponent({
return {
myimgint,
myicon,
}
},
})