首页更新
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user