ssmihd12/src/main/webapp/front/common/linkOthers/linkOthers.vue
(完整代码) 736B<template>
<view>
<view>
<!-- url为要跳转外链的地址-->
<web-view :src="url">
</web-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
url:""
}
},
onLoad(val) {
this.url = decodeURIComponent(val.url);
// 设置当前的title 如果外链中有的话将被覆盖
if(this.isNotEmpty(val.title)){
this.setTitle(val.title);
}
},
methods: {
isNotEmpty(obj) {
if (typeof obj == undefined || obj == null || obj == "" || obj == "undefined" || obj.length == 0) {
return false;
} else {
return true;
}
},
// 设置title
setTitle(title) {
uni.setNavigationBarTitle({
title: title
})
},
}
}
</script>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
