Commit 231cc4bb authored by “yiyousong”'s avatar “yiyousong”

perf: 优化登录

parent e692e2d9
......@@ -207,6 +207,7 @@ export default {
},
data() {
return {
loading: false,
labelCol: { span: 6 },
wrapperCol: { span: 14 },
siteInfo: {
......@@ -303,10 +304,12 @@ export default {
async handleOk() {
this.$refs.formData.validate(async (valid) => {
if (valid) {
this.loading = true;
let res = await addWindow({
...this.form,
...this.siteInfo,
});
this.loading = false;
let { code, msg } = res.data;
if (code === 1) {
this.$message.success(msg);
......
......@@ -390,6 +390,7 @@ export default {
this.mySwiper.slideTo(1);
}, 500);
} else {
this.$message.error(msg);
this.createCode();
}
this.loading = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment