OnePsycho 4 лет назад
Родитель
Сommit
f62bc75b93

+ 3 - 2
TEAMModelOS/ClientApp/src/filters/http.js

@@ -7,7 +7,8 @@ import config from '@/store/module/config'
 let refreshing = false
 let isProduction = process.env.NODE_ENV == 'development' ? false : true
 axios.defaults.timeout = 30000 // 设置超时时长
-axios.defaults.baseURL = isProduction ? '' : 'https://localhost:5001'
+// axios.defaults.baseURL = isProduction ? '' : 'https://localhost:5001'
+axios.defaults.baseURL = '' 
 
 
 // http request 拦截器
@@ -192,7 +193,7 @@ export function post(url, params) {
     data.params = params
     data.lang = localStorage.getItem('local')
     return new Promise((resolve, reject) => {
-        axios.post(url, data)
+        axios.post(url, params)
             .then(response => {
                 if (response && response.data) {
                     resolve(response.data)

+ 1 - 1
TEAMModelOS/ClientApp/src/view/evaluation/bank/ExerciseList.vue

@@ -4,7 +4,7 @@
 		<Loading :top="100" v-show="importLoading" type="1"></Loading>
 		<div class="filter-wrap">
 			<div class="filter-item">
-				<span class="filter-title">来源:</span>
+				<span class="filter-title">来源111:</span>
 				<RadioGroup v-model="filterOrigin" type="button" @on-change="filterOriginChange">
 					<Radio :label="userId">个人题库</Radio>
 					<Radio :label="schoolCode">学校公用库</Radio>

+ 1 - 1
TEAMModelOS/ClientApp/src/view/evaluation/components/BaseImport.vue

@@ -110,7 +110,7 @@
             }
         },
         created() {
-            this.uploadUrl = 'https://' + ( process.env.NODE_ENV == 'development' ? 'localhost:5001' : window.location.host ) + '/api/ImportExercise/uploadWord'
+            this.uploadUrl = 'https://' +  window.location.host  + '/api/ImportExercise/uploadWord'
         },
         methods: {