|
@@ -50,13 +50,9 @@ const openDialog = () => {
|
|
|
|
|
|
const skipLink = ({ link, title }) => {
|
|
const skipLink = ({ link, title }) => {
|
|
closeAdd()
|
|
closeAdd()
|
|
- // if (!uni.getStorageSync('token') && currentPage !== 'pages/login/index') {
|
|
|
|
- // uni.switchTab({
|
|
|
|
- // url: '/pages/index/my'
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
if (link) {
|
|
if (link) {
|
|
- uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title}` })
|
|
|
|
|
|
+ const url = link.indexOf('http') !== -1 ? `/pages/addWebView/index?url=${link}&title=${title}` : link
|
|
|
|
+ uni.navigateTo({ url })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|