use static url instead v-bind
This commit is contained in:
parent
011cd6a549
commit
d4b8191eba
@ -4,7 +4,6 @@ import { computed, ref } from 'vue'
|
||||
// 使用 ref 跟踪鼠标的 x 和 y 坐标
|
||||
const mouseX = ref(0),
|
||||
mouseY = ref(0),
|
||||
characterUrl = ref(''),
|
||||
|
||||
typedString = ['Hello, Welcome to this site!^1000', '欢迎访问本网站!^1000'],
|
||||
littleWidget = [
|
||||
@ -45,7 +44,7 @@ const mouseX = ref(0),
|
||||
}))
|
||||
|
||||
onMounted(() => {
|
||||
characterUrl.value = getAssetURL('common/hoshino.png')
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
@ -112,7 +111,7 @@ onMounted(() => {
|
||||
sm:visible sm:opacity-100 lg:-top-28 lg:-right-28 lg:-bottom-10"
|
||||
>
|
||||
<img
|
||||
:src="characterUrl"
|
||||
src="~/assets/images/common/hoshino.png"
|
||||
alt=""
|
||||
class="float-right h-full"
|
||||
draggable="false"
|
||||
|
Loading…
x
Reference in New Issue
Block a user