Browse Source

修改api

chenxiong 3 năm trước cách đây
mục cha
commit
0ae89861a5
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      common/request.js
  2. 1 1
      pages2/bank/questionBankWrongExplain.vue

+ 1 - 1
common/request.js

@@ -4,7 +4,7 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 
-export const BASE_URL = 'http://192.168.1.222:5055' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
+export const BASE_URL = 'http://42.192.164.187:19005' //接口api  http://42.192.164.187:19005 http://192.168.1.222:5055
 
 
 export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/' //图片上传api  'https://file.xyyxt.net/

+ 1 - 1
pages2/bank/questionBankWrongExplain.vue

@@ -49,7 +49,7 @@
 						<view class="pad_8 titBox no-margin">
 							<view >
 								<view v-for="(item, index) in bank.jsonStr" :key="index" class="lisSty">
-									<text :class="{right:(bank.ques.indexOf(item.optionsId) != -1 ) || (bank.ans.indexOf(item.optionsId) != -1),wrong:(bank.ques.indexOf(item.optionsId) != -1 ) && (bank.ans.indexOf(item.optionsId) == -1)}"  class="activeTI">{{ ast[index] }}</text>
+									<text :class="{right:(bank.ques && bank.ques.indexOf(item.optionsId) != -1 ) || (bank.ans && bank.ans.indexOf(item.optionsId) != -1),wrong:(bank.ques && bank.ques.indexOf(item.optionsId) != -1 ) && (bank.ans && bank.ans.indexOf(item.optionsId) == -1)}"  class="activeTI">{{ ast[index] }}</text>
 									<view class="flex_auto">{{ item.content }}</view>
 								</view>
 							</view>