We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb8e42 commit e6195b3Copy full SHA for e6195b3
uni_modules/uni-upgrade-center/pages/mixin/version_add_detail_mixin.js
@@ -211,7 +211,11 @@ export default {
211
stable_publish: false
212
}
213
},
214
- toUrl(url){
+ async toUrl(url){
215
+ if (/^cloud:\/\//.test(url)) {
216
+ const tcbRes = await uniCloud.getTempFileURL({ fileList: [url] });
217
+ if (typeof tcbRes.fileList[0].tempFileURL !== 'undefined') url = tcbRes.fileList[0].tempFileURL;
218
+ }
219
// #ifdef H5
220
window.open(url);
221
// #endif
0 commit comments