fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import i18n from '@/i18n';
|
||||
import type { Setting } from '@/types';
|
||||
|
||||
import { KintoneRestAPIClient } from '@kintone/rest-api-client';
|
||||
@@ -27,6 +28,9 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
|
||||
throw new Error('このページではヘッダー要素が利用できません。');
|
||||
}
|
||||
|
||||
// 测试 i18n
|
||||
const { t } = i18n.global;
|
||||
|
||||
// 创建按钮
|
||||
const button = new MobileButton({
|
||||
text: setting.buttonName,
|
||||
@@ -42,7 +46,7 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
|
||||
});
|
||||
const pluginsInfo = plugins.map((p) => p.name).join('、');
|
||||
|
||||
const message = setting.message + '\n--------\n【Plugins】 ' + pluginsInfo;
|
||||
const message = t('hello') + "\n" + setting.message + '\n--------\n【Plugins】 ' + pluginsInfo;
|
||||
alert(message);
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch plugins:', error);
|
||||
|
||||
Reference in New Issue
Block a user