feat: 开发采集、采集箱和商品编辑功能

This commit is contained in:
Joey
2026-08-15 22:17:26 +08:00
parent c61d1a3154
commit 36357843d0
130 changed files with 18005 additions and 12 deletions
+20
View File
@@ -0,0 +1,20 @@
// Content Script - 注入到 1688/淘宝商品页
import { scanCurrentPage } from '../../src/collector/scan';
export default defineContentScript({
matches: [
'https://detail.1688.com/*',
'https://item.taobao.com/*',
'https://detail.tmall.com/*'
],
main() {
console.log('[Seller Helper] Content script loaded');
// 暴露采集入口到全局(供 side panel 调用)
(window as any).__SellerHelper = {
scan: scanCurrentPage
};
console.log('[Seller Helper] Ready to scan. Call window.__SellerHelper.scan() to test.');
}
});