Revert "fix: 修改资产账号更新回调方法"

This reverts commit 132d253c98.
This commit is contained in:
Jiangjie.Bai
2022-03-01 14:35:51 +08:00
parent 132d253c98
commit d19c92c97d
2 changed files with 12 additions and 9 deletions

View File

@@ -100,10 +100,10 @@ export default {
name: 'View', name: 'View',
title: this.$t('common.View'), title: this.$t('common.View'),
type: 'primary', type: 'primary',
callback: ({ row }) => { callback: function({ row }) {
this.account = row || {} this.account = row
this.showViewSecretDialog = true this.showViewSecretDialog = true
} }.bind(this)
}, },
{ {
name: 'Delete', name: 'Delete',
@@ -132,10 +132,10 @@ export default {
name: 'Update', name: 'Update',
title: this.$t('common.Update'), title: this.$t('common.Update'),
can: !this.$store.getters.currentOrgIsRoot, can: !this.$store.getters.currentOrgIsRoot,
callback: ({ row }) => { callback: function({ row }) {
this.account = row || {} this.account = row
this.showUpdateSecretDialog = true this.showUpdateSecretDialog = true
} }.bind(this)
} }
] ]
} }

View File

@@ -1,6 +1,6 @@
'use strict' 'use strict'
const path = require('path') const path = require('path')
// const defaultSettings = require('./src/settings.js') const defaultSettings = require('./src/settings.js')
const CompressionWebpackPlugin = require('compression-webpack-plugin') const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = /\.(js|css|json|txt|ico|svg)(\?.*)?$/i const productionGzipExtensions = /\.(js|css|json|txt|ico|svg)(\?.*)?$/i
@@ -34,7 +34,7 @@ module.exports = {
outputDir: 'lina', outputDir: 'lina',
assetsDir: 'assets', assetsDir: 'assets',
lintOnSave: process.env.NODE_ENV === 'development', lintOnSave: process.env.NODE_ENV === 'development',
// productionSourceMap: false, productionSourceMap: false,
devServer: { devServer: {
port: port, port: port,
host: '0.0.0.0', host: '0.0.0.0',
@@ -134,7 +134,10 @@ module.exports = {
.end() .end()
config 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 config
.when(process.env.NODE_ENV !== 'development', .when(process.env.NODE_ENV !== 'development',