You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
854 B
36 lines
854 B
<template>
|
|
<web-view :src="src" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return { src: '' };
|
|
},
|
|
|
|
onLoad(options) {
|
|
console.log('options: ', options);
|
|
if (!options) {
|
|
this.$t.ui.showModal('缺少参数, 请返回重试');
|
|
} else {
|
|
const { p, u, pname, url } = options;
|
|
if (pname) {
|
|
uni.setNavigationBarTitle({ title: pname });
|
|
}
|
|
if (!u) {
|
|
this.$t.ui.showToast('缺少用户信息, 请登录');
|
|
return;
|
|
}
|
|
|
|
if (!p || !url) {
|
|
this.$t.ui.showToast('缺少项目信息, 请重新打开');
|
|
return;
|
|
}
|
|
|
|
// const baseUrl = process.env.VUE_APP_PROJECT_PATH;
|
|
const baseUrl = "https://test.tall.wiki/tall-project";
|
|
this.src = `${baseUrl}/${this.$t.app.version}/#/?u=${u}&p=${p}&url=${url}&pname=${pname}`;
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|