From 91fc209ea3a80a767e3ee3912bc77ad89aec4922 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Fri, 1 Sep 2023 08:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84image=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/image/image-path.uvue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue index bd869aa4..49b5c4dd 100644 --- a/pages/component/image/image-path.uvue +++ b/pages/component/image/image-path.uvue @@ -23,26 +23,26 @@ data: [ { src: '/static/test-image/logo.png', - description: '本地根路径' + description: '本地路径:/static方式' }, { src: '../../../static/test-image/logo.png', - description: '本地相对路径' + description: '本地路径:../static/' }, { src: '../../../static/Test-Image/Logo.png', description: '本地相对路径忽略大小写' }, { - src: 'logo.png', //TODO - description: '本地当前路径(暂不支持)' + src: 'logo.png', + description: '非static目录无法访问' }, { // #ifdef APP-ANDROID src: 'file:///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__4517034/www/static/test-image/logo.png', // #endif // TODO iOS还需再补路径 - description: '本地绝对路径' + description: '本地绝对路径file:///方式。需注意打包后包名appid匹配' }, { src: 'testerror.jpg', -- GitLab