mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
chore: 将部分通用变量移动到utils.ts
This commit is contained in:
parent
78ba547138
commit
48869266e4
10 changed files with 24 additions and 33 deletions
|
|
@ -1,9 +1,7 @@
|
|||
import log from './log'
|
||||
import path from 'path'
|
||||
import { app } from 'electron'
|
||||
import { createDirIfNotExist } from './utils'
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
import { createDirIfNotExist, isDev } from './utils'
|
||||
|
||||
if (isDev) {
|
||||
const devUserDataPath = path.resolve(process.cwd(), '../../tmp/userData')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue