From d19c92c97d5c39aa5e52f6742f6fe2a0bf2c4742 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" <32935519+BaiJiangJie@users.noreply.github.com> Date: Tue, 1 Mar 2022 14:35:51 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E4=BF=AE=E6=94=B9=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E8=B4=A6=E5=8F=B7=E6=9B=B4=E6=96=B0=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E6=96=B9=E6=B3=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 132d253c980a07269705ae869fe80362e8c986fe. --- src/components/AccountListTable/index.vue | 12 ++++++------ vue.config.js | 9 ++++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/AccountListTable/index.vue b/src/components/AccountListTable/index.vue index c9420bebc..40134de82 100644 --- a/src/components/AccountListTable/index.vue +++ b/src/components/AccountListTable/index.vue @@ -100,10 +100,10 @@ export default { name: 'View', title: this.$t('common.View'), type: 'primary', - callback: ({ row }) => { - this.account = row || {} + callback: function({ row }) { + this.account = row this.showViewSecretDialog = true - } + }.bind(this) }, { name: 'Delete', @@ -132,10 +132,10 @@ export default { name: 'Update', title: this.$t('common.Update'), can: !this.$store.getters.currentOrgIsRoot, - callback: ({ row }) => { - this.account = row || {} + callback: function({ row }) { + this.account = row this.showUpdateSecretDialog = true - } + }.bind(this) } ] } diff --git a/vue.config.js b/vue.config.js index 4f0c89ff9..e548d1a41 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,6 @@ 'use strict' const path = require('path') -// const defaultSettings = require('./src/settings.js') +const defaultSettings = require('./src/settings.js') const CompressionWebpackPlugin = require('compression-webpack-plugin') const productionGzipExtensions = /\.(js|css|json|txt|ico|svg)(\?.*)?$/i @@ -34,7 +34,7 @@ module.exports = { outputDir: 'lina', assetsDir: 'assets', lintOnSave: process.env.NODE_ENV === 'development', - // productionSourceMap: false, + productionSourceMap: false, devServer: { port: port, host: '0.0.0.0', @@ -134,7 +134,10 @@ module.exports = { .end() config - .devtool('cheap-source-map') + // https://webpack.js.org/configuration/devtool/#development + .when(process.env.NODE_ENV === 'development', + config => config.devtool('cheap-source-map') + ) config .when(process.env.NODE_ENV !== 'development',