|
@@ -163,15 +163,15 @@ export default {
|
|
|
];
|
|
|
|
|
|
this.$ajax
|
|
|
- .post(API_CONFIG.baseUrl, params)
|
|
|
- .then((res) => {
|
|
|
+ .post(API_CONFIG.baseUrl, params)
|
|
|
+ .then((res) => {
|
|
|
resolve(res)
|
|
|
- })
|
|
|
- .catch((err) => {
|
|
|
- console.log(err);
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
reject(err)
|
|
|
- this.$message.error("获取校区栏失败");
|
|
|
- });
|
|
|
+ this.$message.error("获取校区栏失败");
|
|
|
+ });
|
|
|
})
|
|
|
},
|
|
|
// 查询学校列表
|