Commit 1cb3d982 authored by hanfeng zhang's avatar hanfeng zhang

321

parent cffb5ab2
......@@ -10,16 +10,17 @@ import service from './service'
import {global} from '@/const/Global'
import dsbridge from 'dsbridge'
import { Dialog, Toast, Notify }from 'vant'
import VConsole from 'vconsole'
// import VConsole from 'vconsole'
Vue.config.productionTip = false
Vue.use(Dialog).use(Toast).use(Notify)
Vue.use(utils).use(service)
Vue.prototype.$dsbridge = dsbridge
Vue.prototype.$global = global
if (process.env.NODE_ENV === 'development') {
new VConsole()
}
// if (process.env.NODE_ENV === 'development') {
// new VConsole()
// }
new Vue({
router,
store,
......
......@@ -3,6 +3,7 @@
// 扫描二维码:scanCode
// 打开企业联系人详情页面:openCompanyUserInfo 参数:联系人地址,企业id
import router from '@/router';
import { AcceptJoinDTO } from '@/service/moudles/service.dto'
import dsbridge from 'dsbridge'
......@@ -26,6 +27,16 @@ export function isAppEnv(){
}
export function appNavBack(){
const isApp = isAppEnv()
if(isApp){
goBack
}else{
router.go(-1)
}
}
/**
* 获取用户的资料
* @returns
......
......@@ -6,7 +6,7 @@
header-bg="bg-white"
:loading="loading"
left-arrow
@click-left="$router.go(-1)"
@click-left="appNavBack"
>
<template slot="right">
<app-icon
......@@ -58,7 +58,7 @@
<script lang="ts">
import Vue from 'vue'
import {useLocalStorageState} from 'ahooks-vue'
import { getUserInfo } from '@/util/Bridge'
import { appNavBack, getUserInfo } from '@/util/Bridge'
import { getContacts } from '@/util/Contact'
import {Department, Staff} from '@/Interface'
......@@ -97,6 +97,9 @@ export default Vue.extend({
this.getStaff()
},
methods: {
appNavBack(){
appNavBack()
},
getEntInfo() {
this.loading = true
this.$service.enterprise.getEnterpriseInfo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment