fourPayProject/51uni/components/h5/webView.vue

32 lines
516 B
Vue
Raw Normal View History

2025-03-31 10:23:28 +08:00
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
import {
getToken
} from '@/utils/auth'
import config from '@/config'
export default {
data() {
return {
url: '' //指向网页跳转的连接
}
},
onLoad(option) {
if (option.url) {
var that = this
that.url = option.url
} else {
var that = this
that.url = config.baseUrl + 'app/h5/authH5?token=' + getToken() //携带账号密码,自动登录
}
},
methods: {
}
}
</script>