wucl 2 лет назад
Родитель
Сommit
a2e77a38b9

+ 6 - 6
pages/index/index.vue

@@ -86,8 +86,8 @@
 		methods: {
 			initWS() {
 				let socket = uni.connectSocket({
-					url: 'wss://kps.scdayou.com/ws/apo/ws',
-					//url: 'ws://127.0.0.1:8090/apo/ws',
+					//url: 'wss://kps.scdayou.com/ws/apo/ws',
+					url: 'ws://127.0.0.1:8090/apo/ws',
 					method: 'GET',
 					success: () => {
 						console.log("socket success")
@@ -102,8 +102,8 @@
 			getDocument() {
 				var that = this;
 				uni.request({
-					//url: "http://127.0.0.1:8090/apo/document/current",
-					url: "https://kps.scdayou.com/apo/document/current",
+					url: "http://127.0.0.1:8090/apo/document/current",
+					//url: "https://kps.scdayou.com/apo/document/current",
 					data: null,
 					method: "get",
 					success: function(res) {
@@ -155,8 +155,8 @@
 				that.formData.result = that.commitQuestions;
 				that.formData.questions = [];
 				uni.request({
-					//url: "http://127.0.0.1:8090/apo/document/commit",
-					url: "https://kps.scdayou.com/apo/document/commit",
+					url: "http://127.0.0.1:8090/apo/document/commit",
+					//url: "https://kps.scdayou.com/apo/document/commit",
 					data: that.formData,
 					method: "post",
 					success: function(res) {

+ 6 - 6
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -33,8 +33,8 @@ const _sfc_main = {
   methods: {
     initWS() {
       let socket = common_vendor.index.connectSocket({
-        url: "wss://kps.scdayou.com/ws/apo/ws",
-        //url: 'ws://127.0.0.1:8090/apo/ws',
+        //url: 'wss://kps.scdayou.com/ws/apo/ws',
+        url: "ws://127.0.0.1:8090/apo/ws",
         method: "GET",
         success: () => {
           console.log("socket success");
@@ -49,8 +49,8 @@ const _sfc_main = {
     getDocument() {
       var that = this;
       common_vendor.index.request({
-        //url: "http://127.0.0.1:8090/apo/document/current",
-        url: "https://kps.scdayou.com/apo/document/current",
+        url: "http://127.0.0.1:8090/apo/document/current",
+        //url: "https://kps.scdayou.com/apo/document/current",
         data: null,
         method: "get",
         success: function(res) {
@@ -96,8 +96,8 @@ const _sfc_main = {
       that.formData.result = that.commitQuestions;
       that.formData.questions = [];
       common_vendor.index.request({
-        //url: "http://127.0.0.1:8090/apo/document/commit",
-        url: "https://kps.scdayou.com/apo/document/commit",
+        url: "http://127.0.0.1:8090/apo/document/commit",
+        //url: "https://kps.scdayou.com/apo/document/commit",
         data: that.formData,
         method: "post",
         success: function(res) {

+ 1 - 1
unpackage/dist/dev/mp-weixin/project.config.json

@@ -8,7 +8,7 @@
     "urlCheck": false,
     "es6": true,
     "postcss": false,
-    "minified": true,
+    "minified": false,
     "newFeature": true,
     "bigPackageSizeSupport": true,
     "babelSetting": {