首页更新

This commit is contained in:
2023-07-03 10:06:09 +08:00
parent a6260431a5
commit 572a87b8ec
4 changed files with 36 additions and 25 deletions

View File

@@ -367,11 +367,12 @@ export default {
// 方法
submitForm(formName) {
var _this=this;
this.$refs[formName].validate((valid) => {
if (valid) {
//存入cookie
// this.setCookie(this.ruleForm.username, this.ruleForm.password, 7); //保存7天
this.$cookie.set('username',this.ruleForm.username,7);
// } else {
// this.clearCookie();
@@ -396,6 +397,7 @@ export default {
// type: 'success'
// });
if (res.data.code === 200) {
_this.$cookie.set('username',_this.ruleForm.username,7);
Vue.prototype.$notify({
title: '成功',
message: ('i', {style: 'color: teal'}, res.data.msg),