File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed
Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ VUE_APP_ATOM_API = '/atom-webapi'
77
88# target host
99
10- # VUE_TARGET_HOST = 'http://192.168.2.181:8000'
11- VUE_TARGET_HOST = ' https://iast-test.huoxian.cn'
10+ VUE_TARGET_HOST = ' http://192.168.2.181:8000'
11+ # VUE_TARGET_HOST = 'https://iast-test.huoxian.cn'
1212# VUE_TARGET_HOST = 'http://52.81.92.214:30485'
1313# VUE_TARGET_HOST = 'http://iast.huoxian.cn'
1414
Original file line number Diff line number Diff line change 11<template >
22 <div id =" app" >
33 <router-view />
4+ <el-button class =" service" icon =" el-icon-service" circle @click =" toService" >
5+ </el-button >
46 </div >
57</template >
68
79<script lang="ts">
8- import { Vue } from ' vue-property-decorator'
10+ import { Vue , Component } from ' vue-property-decorator'
911
12+ @Component ({
13+ name: ' App' ,
14+ })
1015export default class App extends Vue {
11- name = ' App'
16+ toService() {
17+ console .log (this )
18+ const userId = this .$store .getters .userInfo
19+ ? this .$store .getters .userInfo .userid
20+ : ' '
21+ const pageName = this .$t (this .$route .meta .i18n )
22+ const customerInfo = pageName + ' ,' + userId
23+ console .log (this .$store .getters .userInfo , this .$route .path )
24+ window .open (
25+ ' https://support.qq.com/product/371942?customInfo=' + customerInfo
26+ )
27+ }
1228}
1329 </script >
1430
1531<style scoped>
1632#app {
1733 background : #f4f4f4 ;
1834}
35+ .service {
36+ position : fixed ;
37+ right : 20px ;
38+ bottom : 20px ;
39+ z-index : 9999 ;
40+ }
1941 </style >
You can’t perform that action at this time.
0 commit comments