diff --git a/.vscode/settings.json b/.vscode/settings.json index a37efc2..ec0dcd6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,6 +20,7 @@ "stylusSupremacy.sortProperties": "grouped", "stylusSupremacy.quoteChar": "\"", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": true, + "source.organizeImports": false } } \ No newline at end of file diff --git a/package.json b/package.json index d003fdd..689a632 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "picgo": "^1.5.4", "qrcode.vue": "^3.3.3", "shell-path": "2.1.0", - "uuidv4": "^6.2.11", + "uuid": "^9.0.0", "vue": "^3.3.4", "vue-router": "^4.2.2", "vue3-lazyload": "^0.3.6", @@ -57,6 +57,7 @@ "@types/request-promise-native": "^1.0.17", "@types/semver": "^7.3.8", "@types/tunnel": "^0.0.3", + "@types/uuid": "^9.0.2", "@types/write-file-atomic": "^4.0.0", "@typescript-eslint/eslint-plugin": "^5.48.0", "@typescript-eslint/parser": "^5.48.0", diff --git a/src/main/utils/handleUploaderConfig.ts b/src/main/utils/handleUploaderConfig.ts index cc46692..237e8f9 100644 --- a/src/main/utils/handleUploaderConfig.ts +++ b/src/main/utils/handleUploaderConfig.ts @@ -1,6 +1,6 @@ -import { uuid } from 'uuidv4' import { trimValues } from '#/utils/common' import picgo from '@core/picgo' +import { v4 as uuid } from 'uuid' export const handleConfigWithFunction = (config: IPicGoPluginOriginConfig[]): IPicGoPluginConfig[] => { for (const i in config) { diff --git a/src/renderer/pages/Upload.vue b/src/renderer/pages/Upload.vue index d4fc461..2fdea2f 100644 --- a/src/renderer/pages/Upload.vue +++ b/src/renderer/pages/Upload.vue @@ -6,7 +6,7 @@ :offset="2" >
- {{ $T('PICTURE_UPLOAD') }} - {{ picBedName }} + {{ $T('PICTURE_UPLOAD') }} - {{ picBedName }} - {{ configName }}
@@ -100,25 +100,25 @@