whj 4 سال پیش
والد
کامیت
77dac5b5dd
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 1 0
      .gitignore
  2. 4 4
      public/testweb/upgrade.html

+ 1 - 0
.gitignore

xqd
@@ -3,6 +3,7 @@
 /public/storage
 /storage/*.key
 /public/vendor
+/public/upload
 /vendor
 .env
 .env.backup

+ 4 - 4
public/testweb/upgrade.html

xqd xqd xqd xqd
@@ -97,7 +97,7 @@
             methods: {
                 resetbtn() {
                     if (this.isxian == '在营') {
-                        axios.get("http://172.31.31.199/upVersion?id=" + this.value + "&type=" + 2).then(res => {
+                        axios.get("/upVersion?id=" + this.value + "&type=" + 2).then(res => {
                             if (res.data.status == 200) {
                                 alert("重置命令发送成功,请耐心等待30s,系统将自动重置")
                             }
@@ -108,7 +108,7 @@
                 },
                 installbtn() {
                     if (this.value != "") {
-                        axios.get("http://172.31.31.199/getDevice?id=" + this.value).then(res => {
+                        axios.get("/getDevice?id=" + this.value).then(res => {
                             console.log(res)
                             if (res.data.status == 200) {
                                 this.isInstall = false
@@ -127,7 +127,7 @@
                 },
                 upbtn() {
                     if (this.isxian == '在营' && this.isnew == 0) {
-                        axios.get("http://172.31.31.199/upVersion?id=" + this.value + "&type=" + 1).then(res => {
+                        axios.get("/upVersion?id=" + this.value + "&type=" + 1).then(res => {
                             if (res.data.status == 200) {
                                 alert('升级命令发送成功,请耐心等待3-5分钟设备升级完成后,所有锁口会变为通电状态')
                             }
@@ -143,4 +143,4 @@
     </script>
 </body>
 
-</html>
+</html>