提交 d9e9d04f authored 作者: lihuihui's avatar lihuihui

update

上级 1432141c
......@@ -14,6 +14,7 @@
<script>
import { getDocDetails } from '../api'
import { getUser } from '@/api/base.js'
import HeadBack from '@/components/HeadBack.vue'
export default {
components: {
......@@ -26,8 +27,13 @@ export default {
},
methods: {
goPage() {
// console.log(this.data.url, '123')
window.open(this.data.url)
getUser().then(res => {
if (Object.keys(res.data).length) {
window.location.href = this.data.url
} else {
window.location.href = `https://login.ezijing.com/highway-plus/login/index?rd=${window.location.href}`
}
})
},
getDocDetails() {
getDocDetails({ id: this.$route.query.id }).then(res => {
......
......@@ -14,6 +14,7 @@
<script>
import { getDocDetails } from '../api'
import { getUser } from '@/api/base.js'
import HeadBack from '@/components/HeadBack.vue'
export default {
components: {
......@@ -26,8 +27,13 @@ export default {
},
methods: {
goPage() {
// window.location.href = this.data.url
window.open(this.data.url)
getUser().then(res => {
if (Object.keys(res.data).length) {
window.location.href = this.data.url
} else {
window.location.href = `https://login.ezijing.com/highway-plus/login/index?rd=${window.location.href}`
}
})
},
getDocDetails() {
getDocDetails({ id: this.$route.query.id }).then(res => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论