| | |
| | | |
| | | <script> |
| | | import { SaveSystemProcConfig } from '@/api/systemSetting' |
| | | import { logout } from '@/api/user' |
| | | |
| | | export default { |
| | | name: 'ProcessSetting', |
| | |
| | | } |
| | | }, |
| | | save() { |
| | | this.$confirm('是否确认保存?', '提示', { |
| | | this.$confirm('是否确认保存?保存成功之后自动跳转登录页重新登录', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | if (res.code === '200') { |
| | | localStorage.setItem('mesSetting', JSON.stringify(data)) |
| | | this.$notify.success('保存成功!') |
| | | |
| | | setTimeout(() => { |
| | | logout().then(res => { |
| | | localStorage.removeItem('token') |
| | | this.$router.push({ path: this.redirect || '/' }) |
| | | }) |
| | | }, 2000) |
| | | } |
| | | }) |
| | | }).catch(() => { |