fix(preview-download): declare remote service dependency

This commit is contained in:
2026-10-17 03:31:32 +08:00
parent bbdee632f6
commit eb7e809999
9 changed files with 39 additions and 9 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ window.__ModuleLoader__.load({ id: 'dsh-preview-download', factory: require => {
}
return {
inject: ['slots', 'locale', 'remote.workspaceFiles'],
inject: ['slots', 'locale', 'remote', 'remote.workspaceFiles'],
apply(ctx) {
ctx.effect(() => ctx.locale.register(namespace, {
zh: { download: '下载原文件', loading: '下载中…', failed: '下载失败,请检查文件权限或重试。', tooLarge: '文件超过下载大小限制。' },
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "dsh-preview-download",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"type": "module",
"main": "index.js",