소스 검색

token加入

wangtao 2 년 전
부모
커밋
4dc381dbcd
4개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 1
      .gitignore
  2. 1 1
      src/components2/equipmentStatus/seTable.vue
  3. 1 1
      src/components2/realTimeVideo/index.vue
  4. 1 1
      src/views/index.vue

+ 2 - 1
.gitignore

@@ -5,6 +5,7 @@ dist/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
+.history/
 **/*.log
 
 tests/**/coverage/
@@ -22,4 +23,4 @@ selenium-debug.log
 *.local
 
 package-lock.json
-yarn.lock
+yarn.lock

+ 1 - 1
src/components2/equipmentStatus/seTable.vue

@@ -98,7 +98,7 @@ export default {
         }
       axios({
           method: 'post',
-          url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=500&unitType=1',
+          url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=500&unitType=1&token=d6790e9ac3c419f6fc8d48f8c2957afd',
           timeout: 3000,
       }).then(res =>{
           if(res.data.data.pageList){

+ 1 - 1
src/components2/realTimeVideo/index.vue

@@ -77,7 +77,7 @@ export default {
       init(){
         axios({
             method: 'post',
-            url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=500&unitType=1',
+            url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=500&unitType=1&token=d6790e9ac3c419f6fc8d48f8c2957afd',
             timeout: 3000,
         }).then(res =>{
             if(res.data.data.pageList){

+ 1 - 1
src/views/index.vue

@@ -145,7 +145,7 @@ export default {
         }else{
           axios({
               method: 'post',
-              url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=1&uniType=1&id=' + id,
+              url: 'http://10.21.39.1:8082/dhController/getLocalChannel?pageNo=1&pageSize=1&uniType=1&token=d6790e9ac3c419f6fc8d48f8c2957afd&id=' + id,
               timeout: 3000,
           }).then(res =>{
               if(res.data.data.pageList.length>0){