fix format
This commit is contained in:
@@ -7,8 +7,7 @@ import { Button } from 'kintone-ui-component/lib/button';
|
|||||||
(function (PLUGIN_ID) {
|
(function (PLUGIN_ID) {
|
||||||
kintone.events.on('app.record.index.show', async () => {
|
kintone.events.on('app.record.index.show', async () => {
|
||||||
// 授权了才能使用
|
// 授权了才能使用
|
||||||
LicenseService.loadPluginIfAuthorized(PLUGIN_ID,
|
LicenseService.loadPluginIfAuthorized(PLUGIN_ID, async () => {
|
||||||
async () => {
|
|
||||||
// 获取当前应用ID
|
// 获取当前应用ID
|
||||||
const appIdNum = kintone.app.getId();
|
const appIdNum = kintone.app.getId();
|
||||||
if (!appIdNum) {
|
if (!appIdNum) {
|
||||||
@@ -55,7 +54,6 @@ import { Button } from 'kintone-ui-component/lib/button';
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
headerSpace.appendChild(button);
|
headerSpace.appendChild(button);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
})(kintone.$PLUGIN_ID);
|
})(kintone.$PLUGIN_ID);
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
|
|||||||
(function (PLUGIN_ID) {
|
(function (PLUGIN_ID) {
|
||||||
kintone.events.on('mobile.app.record.index.show', () => {
|
kintone.events.on('mobile.app.record.index.show', () => {
|
||||||
// 授权了才能使用
|
// 授权了才能使用
|
||||||
LicenseService.loadPluginIfAuthorized(PLUGIN_ID,
|
LicenseService.loadPluginIfAuthorized(PLUGIN_ID, async () => {
|
||||||
async () => {
|
|
||||||
// 获取当前应用ID
|
// 获取当前应用ID
|
||||||
const appIdNum = kintone.mobile.app.getId();
|
const appIdNum = kintone.mobile.app.getId();
|
||||||
if (!appIdNum) {
|
if (!appIdNum) {
|
||||||
@@ -55,7 +54,6 @@ import { MobileButton } from 'kintone-ui-component/lib/mobile/button';
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
headerSpace.appendChild(button);
|
headerSpace.appendChild(button);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
})(kintone.$PLUGIN_ID);
|
})(kintone.$PLUGIN_ID);
|
||||||
Reference in New Issue
Block a user