feat: 开发采集、采集箱和商品编辑功能
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Content Script —— 注入 Ozon 商品页,暴露采集入口
|
||||
import { scanCurrentPage } from '../../src/collector/scan';
|
||||
|
||||
export default defineContentScript({
|
||||
matches: [
|
||||
'https://*.ozon.ru/*',
|
||||
'https://*.ozon.kz/*',
|
||||
'https://*.ozon.by/*'
|
||||
],
|
||||
main() {
|
||||
console.log('[Ozon Seller Kit] Content script loaded');
|
||||
|
||||
// 暴露采集入口到全局(供 side panel 调用 / console 调试)
|
||||
(window as any).__SellerHelperOzon = {
|
||||
scan: scanCurrentPage,
|
||||
};
|
||||
|
||||
console.log('[Ozon Seller Kit] 就绪。Console 可测: await window.__SellerHelperOzon.scan()');
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user