lj пре 4 година
родитељ
комит
7f1bd5b846
4 измењених фајлова са 13 додато и 13 уклоњено
  1. 3 3
      config/index.js
  2. BIN
      ksh_dist_1.zip
  3. 5 5
      src/pages/Monitor.vue
  4. 5 5
      src/router/index.js

+ 3 - 3
config/index.js

@@ -12,7 +12,7 @@ module.exports = {
     proxyTable: {
       '/api': {
         // target: 'http://192.168.1.8:8000/',
-        target: 'http://192.168.1.107:8001/',
+        target: 'http://192.168.1.112:8005/',
         changeOrigin: true,
         pathRewrite: {
           '^/api': '' //重写接口
@@ -20,8 +20,8 @@ module.exports = {
       },
     },
     // Various Dev Server settings
-    host: '192.168.1.112', // can be overwritten by process.env.HOST
-    port: 8000, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+    host: '192.168.1.88', // can be overwritten by process.env.HOST
+    port: 8003, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,
     notifyOnErrors: true,


+ 5 - 5
src/pages/Monitor.vue

@@ -345,7 +345,7 @@ export default {
     getJkList() {
       this.$axios({
         method: "POST",
-        url: "list_camera",
+        url: "/api/list_camera",
         data: this.qs.stringify({ page: this.currPage,equip_type:2 }),
       }).then((res) => {
         this.Idlist = res.data.data;
@@ -401,7 +401,7 @@ export default {
           //上下左右、放大、缩小
           this.$axios({
             method: "POST",
-            url: "ctrl_camera",
+            url: "/api/ctrl_camera",
             data: this.qs.stringify({
               device_id: id,
               ctrl: ctrl,
@@ -424,7 +424,7 @@ export default {
       if (id != "") {
         this.$axios({
           method: "POST",
-          url: "ctrl_camera",
+          url: "/api/ctrl_camera",
           data: this.qs.stringify({
             device_id: id,
             ctrl: "stop",
@@ -443,7 +443,7 @@ export default {
           console.log(item);
           //避免右侧监控数量少于divNum
           this.$axios({
-            url: "addr_camera",
+            url: "/api/addr_camera",
             method: "POST",
             data: this.qs.stringify({
               device_id: this.Idlist[item-1].device_id,
@@ -483,7 +483,7 @@ export default {
         this.videotape = videotape;
         console.log(this.divName);
         this.$axios({
-          url: "addr_camera",
+          url: "/api/addr_camera",
           method: "POST",
           data: this.qs.stringify({ device_id: device_id, jk_type: jktype }),
         }).then((res) => {

+ 5 - 5
src/router/index.js

@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import Router from 'vue-router'
-// const Login = () => import('@/components/Login')
+const Login = () => import('@/components/Login')
 const Index = () => import('@/components/Index')
 const Monitor = () => import('@/pages/Monitor')
 const EquipList = () => import('@/pages/EquipList')
@@ -12,10 +12,10 @@ export default new Router({
       path: '',
       redirect: '/index/monitor1'
     },
-    // {
-    //   path: '/login',
-    //   component: Login
-    // },
+    {
+      path: '/login',
+      component: Login
+    },
     {
       path: '/index',
       component: Index,