mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 15:07:43 +00:00
@@ -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)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user