提交 1928d1f0 编写于 作者: 杜庆泉's avatar 杜庆泉

修改错误的java.io.file 用法

上级 5cbfb082
......@@ -63,7 +63,7 @@ import {
getDeviceInfoTest,
privacyStateTest,
} from '@/uni_modules/uts-platform-api'
import File from 'java.io.File';
import Intent from 'android.content.Intent';
/**
......@@ -161,7 +161,7 @@ export default {
}
},
getFileProviderUriClick() {
let file = new java.io.File(UTSAndroid.getResourcePath("static/logo.png"))
let file = new File(UTSAndroid.getResourcePath("static/logo.png"))
const uri = UTSAndroid.getFileProviderUri(file)
console.log("uri",uri.toString())
const intent = new Intent(Intent.ACTION_VIEW, uri)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册