Skip to content

Commit a078a4a

Browse files
committed
优化:插件管理开发状态标记显示
1 parent 8a026a9 commit a078a4a

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- 优化:插件发布错误提醒增加错误码
1010
- 优化:打开开发者调试默认为激活状态
1111
- 优化:请求异常时增加错误码
12+
- 优化:插件管理开发状态标记显示
1213

1314
## v0.2.0
1415

electron/preload/focusany.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export const FocusAny = {
459459
}
460460
data = Buffer.from(data as string, 'base64')
461461
}
462-
fs.writeFileSync(path, data)
462+
fs.writeFileSync(path, data as Uint8Array)
463463
return true
464464
}
465465
},

src/pages/System/SystemPlugin.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ const doInstallStore = async () => {
207207
<div class="flex-grow w-0 truncate">
208208
{{ r.title }}
209209
</div>
210+
<div v-if="r.type==='dir'" class="text-xs bg-red-100 text-red-600 rounded px-1">
211+
DEV
212+
</div>
213+
<div v-else-if="r.type==='zip'" class="text-xs bg-gray-100 text-gray-600 rounded px-1">
214+
ZIP
215+
</div>
210216
</div>
211217
</div>
212218
<div class="border-t border-solid border-default py-2 text-center">
@@ -233,9 +239,10 @@ const doInstallStore = async () => {
233239
v{{ recordCurrent.version }}
234240
</div>
235241
<a-tooltip :content="'本地插件:'+recordCurrent.runtime?.root">
236-
<a-tag v-if="recordCurrent.type==='dir'" size="small" color="red" class="ml-2 text-xs">
242+
<div v-if="recordCurrent.type==='dir'"
243+
class="text-xs ml-1 bg-red-100 text-red-600 rounded px-1 cursor-pointer">
237244
DEV
238-
</a-tag>
245+
</div>
239246
</a-tooltip>
240247
<div class="flex-grow"></div>
241248
</div>

0 commit comments

Comments
 (0)