mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fixed unable to save settings error
This commit is contained in:
@@ -41,6 +41,13 @@
|
||||
<el-form-item prop="password" :label="$t('Password')">
|
||||
<el-input v-model="userInfo.password" type="password" :placeholder="$t('Password')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<div style="text-align: right">
|
||||
<el-button type="success" size="small" @click="saveUserInfo">
|
||||
{{$t('Save')}}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('Notify Settings')" name="notify">
|
||||
@@ -77,6 +84,13 @@
|
||||
<el-input v-model="userInfo.setting.wechat_robot_webhook"
|
||||
:placeholder="$t('Wechat Robot Webhook')"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<div style="text-align: right">
|
||||
<el-button type="success" size="small" @click="saveUserInfo">
|
||||
{{$t('Save')}}
|
||||
</el-button>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane :label="$t('Global Variable')" name="global-variable">
|
||||
@@ -197,10 +211,7 @@ export default {
|
||||
...mapState('user', [
|
||||
'globalVariableList',
|
||||
'globalVariableForm'
|
||||
]),
|
||||
userInfoStr () {
|
||||
return JSON.stringify(this.userInfo)
|
||||
}
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
userInfoStr () {
|
||||
|
||||
Reference in New Issue
Block a user