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',
|
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)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -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',
|
||||||
|
Reference in New Issue
Block a user