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

update

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