You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
代码格式调整:packages/gui/**/*.js
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import Sudoer from 'electron-sudo'
|
||||
import DevSidecar from '@docmirror/dev-sidecar'
|
||||
import Sudoer from 'electron-sudo'
|
||||
|
||||
export default {
|
||||
async open () {
|
||||
const options = { name: '设置loopback' }
|
||||
const sudoer = new Sudoer(options)
|
||||
const exeFile = DevSidecar.api.shell.extraPath.getEnableLoopbackPath()
|
||||
await sudoer.exec(
|
||||
exeFile, { env: { PARAM: 'VALUE' } }
|
||||
exeFile,
|
||||
{ env: { PARAM: 'VALUE' } },
|
||||
)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user