From 55ab4e8bd7af0e33b12ba61fce07ff026042c99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=99=8C?= Date: Sun, 29 Oct 2023 14:39:28 +0800 Subject: [PATCH] llll --- public/config.js | 4 ++-- src/views/system/table/index.vue | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/public/config.js b/public/config.js index 9a64a19..04dab9f 100644 --- a/public/config.js +++ b/public/config.js @@ -7,11 +7,11 @@ const APP_CONFIG = { // Cookie name SESSIONNAME: 'miucms_session', //TokenName - TOKEN_NAME: "token", + TOKEN_NAME: "authorization", // 网站LOGO, 正式形 APP_LOGO: '', //接口地址 - API_URL: 'https://ps.xiaoapi.com/admin/', + API_URL: 'https://app.gter.net/admin/', // 微信扫码登录 MY_SHOW_LOGIN_OAUTH: true, } \ No newline at end of file diff --git a/src/views/system/table/index.vue b/src/views/system/table/index.vue index d4b0712..208f732 100644 --- a/src/views/system/table/index.vue +++ b/src/views/system/table/index.vue @@ -168,12 +168,9 @@ }, //本地更新数据 handleSuccess(data, mode, message){ - - - if(mode=='edit'){ if (data) { - this.$refs.table.tableData.filter(item => item[this.key]===data[this.key] ).forEach(item => { + this.$refs.table.tableData.filter(item => item[this.key]===data[this.key]).forEach(item => { Object.assign(item, data, data) }) }else{