uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

uniapp 微信小程序编译错误

Open ywenhao opened this issue 1 year ago • 2 comments
trafficstars

uniapp,用vue3 setup里面,import 导入一张图片,编译成微信小程序会出现Logo is not defined,查看编译后的代码是被编译成了_ctx.Logo

<template>
  <image  :src="Logo" />
</template>

<script setup lang="ts"> 
import Logo from '@/static/logo.png'

// 正常打印
console.log(Logo)
</script>

ywenhao avatar May 29 '24 14:05 ywenhao

image

ywenhao avatar May 30 '24 03:05 ywenhao

挺重大的bug,麻烦官方修改一下。或者告知一下负责这一模块的文件位置,方便我们提pr

ywenhao avatar Jun 01 '24 02:06 ywenhao

现在是正常的,图片也可以正常显示了!

GRCmade avatar Jul 04 '24 11:07 GRCmade

现在是正常的,图片也可以正常显示了!

ok, 好了

ywenhao avatar Jul 05 '24 01:07 ywenhao