@@ -182,11 +182,10 @@ export default {
/**
* 提交
*/
- async submitForm() {
- this.$refs[ruleForm].validate((valid) => {
+ submitForm() {
+ this.$refs[ruleForm].validate(async (valid) => {
if(valid) {
- let res = this.$post('/api/admin/cert/updateInfo', this.ruleForm)
- , data = res.data
+ let res = await this.$post('/api/admin/cert/updateInfo', this.ruleForm)
if(res.status < 0) {
this.$message({
message: res.info,
@@ -72,7 +72,7 @@ const request = async (method, path, data, payload = {}) => {
return
} else {
Vue.prototype.$message.error(rData.info)
- return
+ return rData
}