32 lines
516 B
Vue
32 lines
516 B
Vue
<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> |