empty if no header
This commit is contained in:
@@ -57,7 +57,7 @@ function doPost(e) {
|
||||
// 3. Map data to the (potentially updated) existingHeaders
|
||||
var row = existingHeaders.map(function(header) {
|
||||
var val = data[header];
|
||||
if (val === undefined || val === null) return "N/A";
|
||||
if (val === undefined || val === null) return "";
|
||||
if (typeof val === 'object') return JSON.stringify(val);
|
||||
return val;
|
||||
});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "AI 硬件抓取助手",
|
||||
"name": "商品信息抓取助手",
|
||||
"version": "1.0",
|
||||
"description": "使用 Gemini AI 从网站抓取产品数据。",
|
||||
"description": "使用 Gemini AI 从网站抓取自定义的商品数据。",
|
||||
"permissions": [
|
||||
"sidePanel",
|
||||
"scripting",
|
||||
@@ -20,7 +20,7 @@
|
||||
"default_path": "sidepanel.html"
|
||||
},
|
||||
"action": {
|
||||
"default_title": "AI 硬件抓取助手",
|
||||
"default_title": "商品信息抓取助手",
|
||||
"default_icon": {
|
||||
"16": "icons/icon16.png",
|
||||
"32": "icons/icon32.png",
|
||||
|
||||
@@ -3,15 +3,11 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>AI 硬件抓取助手</title>
|
||||
<title>商品信息抓取助手</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body class="bg-gray-50 p-4">
|
||||
<div class="max-w-md mx-auto">
|
||||
<!-- Header -->
|
||||
<!-- <header class="mb-6">
|
||||
<h1 class="text-xl font-bold text-indigo-700">AI 硬件抓取助手</h1>
|
||||
</header> -->
|
||||
|
||||
<!-- API Config -->
|
||||
<section class="bg-white rounded-lg shadow-sm mb-4 border border-gray-200">
|
||||
|
||||
Reference in New Issue
Block a user