|
|
@ -79,7 +79,7 @@ export default { |
|
|
|
loginForm: { |
|
|
|
userid: '', |
|
|
|
password: '', |
|
|
|
pid: 100 |
|
|
|
pid: "" |
|
|
|
}, |
|
|
|
loginRules: { |
|
|
|
pid: [{ required: true, trigger: 'blur', message: '不能为空' }], |
|
|
@ -123,7 +123,8 @@ export default { |
|
|
|
getPlants() { |
|
|
|
getCourts().then((res) => { |
|
|
|
if (res.code === 200) { |
|
|
|
this.options = res.data |
|
|
|
this.options = res.data || []; |
|
|
|
this.loginForm.pid = this.options[0].cid || ""; |
|
|
|
localStorage.setItem('cid', JSON.stringify(this.options)) |
|
|
|
} |
|
|
|
}) |
|
|
|