小小儁爺
2024-05-30 cc4e197fe80f5c72840fc6d81e4d93ccbe6276e5
src/views/systemSetting/processSetting.vue
@@ -107,6 +107,7 @@
<script>
import { SaveSystemProcConfig } from '@/api/systemSetting'
import { logout } from '@/api/user'
export default {
  name: 'ProcessSetting',
@@ -144,7 +145,7 @@
      }
    },
    save() {
      this.$confirm('是否确认保存?', '提示', {
      this.$confirm('是否确认保存?保存成功之后自动跳转登录页重新登录', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
@@ -163,6 +164,13 @@
          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(() => {
@@ -186,29 +194,34 @@
</script>
<style scoped>
.main{
.main {
  display: flex;
  flex-direction: column;
}
.block{
.block {
  height: 100px;
}
.block-title{
.block-title {
}
.block-content{
.block-content {
  padding: 20px;
  display: flex;
  align-items: center;
}
.font{
.font {
  color: #606266;
  font-size: 14px;
  display: flex;
  align-items: center;
  width: 200px;
}
.el-icon-question {
  cursor: pointer;
}
</style>