webview.js 592 B

123456789101112131415161718192021
  1. import { getToken } from '@/utils/auth'
  2. let server_url = window.location.host
  3. if(process.env.NODE_ENV === 'development'){
  4. server_url = 'tq.5000v.com:8035'
  5. }
  6. export default {
  7. data() {
  8. return {
  9. webviewServer: window.location.protocol+'//'+server_url+'/workflow-h5/#/',
  10. // webviewServer: 'http://tq.5000v.com:8035/workflow-h5/#/',
  11. // webviewServer: 'http://192.168.31.108:8035/workflow-h5/#/',
  12. // webviewServer: 'http://tq.5000v.com:8032/workflow-h5/#/',
  13. // authtoken: getToken()
  14. }
  15. },
  16. computed: {
  17. authtoken() {
  18. return this.$store.state.user.token
  19. }
  20. },
  21. }