luolei 5 éve
szülő
commit
e6b9835d88
2 módosított fájl, 9 hozzáadás és 9 törlés
  1. 2 2
      config/index.js
  2. 7 7
      src/components/Preview.vue

+ 2 - 2
config/index.js

@@ -4,8 +4,8 @@
 
 const path = require('path')
 // const proxy_path = 'http://192.168.2.236:80';
-const proxy_path = 'http://192.168.2.236:5050';
-// const proxy_path = 'http://192.168.2.241:5050';
+// const proxy_path = 'http://192.168.2.236:5050';
+const proxy_path = 'http://192.168.2.241:5050';
 
 module.exports = {
   dev: {

+ 7 - 7
src/components/Preview.vue

@@ -257,16 +257,16 @@ export default {
     getDetailText(textArr,flg){
       let msg = "",obg={},msgP = "";
       if(flg == 1){
-        for(let k in textArr){
-          let item = textArr[k]
+        // for(let k in textArr){
+          let item = textArr[0];
           if(item.special){
-            msg+=item.name+item.special+(k == textArr.length-1?'':',')
-            msgP+=item.name+item.specialP+(k == textArr.length-1?'':',')
+            msg+=item.name+item.special
+            msgP+=item.name+item.specialP
           }else{
-            msg+=item.name+(k == textArr.length-1?'':',')
-            msgP+=item.name+(k == textArr.length-1?'':',')
+            msg+=item.name
+            msgP+=item.name
           }
-        }
+        // }
       }else{
         for(let k in textArr){
           if(textArr[k] && Array.isArray(textArr[k])){