193 lines
6.2 KiB
HTML
193 lines
6.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||
<meta http-equiv="Pragma" content="no-cache">
|
||
<meta http-equiv="Expires" content="0">
|
||
<title>强制刷新 - Warehouse图标修复</title>
|
||
<style>
|
||
body {
|
||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||
max-width: 800px;
|
||
margin: 50px auto;
|
||
padding: 20px;
|
||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
min-height: 100vh;
|
||
}
|
||
.container {
|
||
background: white;
|
||
border-radius: 20px;
|
||
padding: 40px;
|
||
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
||
}
|
||
h1 {
|
||
color: #667eea;
|
||
margin-bottom: 10px;
|
||
font-size: 32px;
|
||
}
|
||
.status {
|
||
background: #10b981;
|
||
color: white;
|
||
padding: 15px 25px;
|
||
border-radius: 10px;
|
||
margin: 20px 0;
|
||
font-weight: bold;
|
||
font-size: 18px;
|
||
}
|
||
.steps {
|
||
background: #f0f9ff;
|
||
border-left: 4px solid #3b82f6;
|
||
padding: 20px;
|
||
margin: 20px 0;
|
||
border-radius: 5px;
|
||
}
|
||
.step {
|
||
margin: 15px 0;
|
||
padding-left: 30px;
|
||
position: relative;
|
||
}
|
||
.step::before {
|
||
content: "✓";
|
||
position: absolute;
|
||
left: 0;
|
||
color: #10b981;
|
||
font-weight: bold;
|
||
font-size: 20px;
|
||
}
|
||
button {
|
||
background: #667eea;
|
||
color: white;
|
||
border: none;
|
||
padding: 15px 40px;
|
||
font-size: 16px;
|
||
font-weight: bold;
|
||
border-radius: 10px;
|
||
cursor: pointer;
|
||
margin: 10px 5px;
|
||
transition: all 0.3s;
|
||
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
||
}
|
||
button:hover {
|
||
background: #5568d3;
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
|
||
}
|
||
.warning {
|
||
background: #fef3c7;
|
||
border-left: 4px solid #f59e0b;
|
||
padding: 15px;
|
||
margin: 20px 0;
|
||
border-radius: 5px;
|
||
}
|
||
.code {
|
||
background: #1f2937;
|
||
color: #10b981;
|
||
padding: 15px;
|
||
border-radius: 8px;
|
||
font-family: "Courier New", monospace;
|
||
margin: 15px 0;
|
||
overflow-x: auto;
|
||
}
|
||
.success-icon {
|
||
font-size: 60px;
|
||
text-align: center;
|
||
margin: 20px 0;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<div class="success-icon">🔧</div>
|
||
<h1>Warehouse 图标导入修复</h1>
|
||
|
||
<div class="status">
|
||
✅ 已添加 Warehouse 图标导入
|
||
</div>
|
||
|
||
<div class="warning">
|
||
<strong>⚠️ 重要:</strong> 如果仍然看到错误,请按照以下步骤操作
|
||
</div>
|
||
|
||
<div class="steps">
|
||
<h3>修复步骤:</h3>
|
||
<div class="step">已在 AssetPurchase.tsx 中添加 Warehouse 导入</div>
|
||
<div class="step">清除浏览器缓存</div>
|
||
<div class="step">强制刷新页面 (Ctrl + Shift + R 或 Cmd + Shift + R)</div>
|
||
<div class="step">重启开发服务器</div>
|
||
</div>
|
||
|
||
<h3>已修复的导入:</h3>
|
||
<div class="code">
|
||
import {<br>
|
||
ShoppingCart,<br>
|
||
Plus,<br>
|
||
// ... 其他图标<br>
|
||
PackageCheck,<br>
|
||
<strong style="color: #fbbf24;">Warehouse,</strong> ← 新增<br>
|
||
} from 'lucide-react';
|
||
</div>
|
||
|
||
<h3>快速操作:</h3>
|
||
<div style="text-align: center; margin-top: 30px;">
|
||
<button onclick="clearCache()">清除缓存并刷新</button>
|
||
<button onclick="location.reload(true)">强制刷新页面</button>
|
||
</div>
|
||
|
||
<div class="warning" style="margin-top: 30px;">
|
||
<strong>🔍 检查清单:</strong>
|
||
<ul>
|
||
<li>✓ Warehouse 已添加到 lucide-react 导入</li>
|
||
<li>✓ 在第 47 行导入列表中</li>
|
||
<li>✓ 在第 2210 行使用</li>
|
||
<li>⏳ 需要清除缓存才能生效</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="steps" style="margin-top: 30px;">
|
||
<h3>📋 手动验证步骤:</h3>
|
||
<div class="step">打开开发者工具 (F12)</div>
|
||
<div class="step">进入 Network 标签</div>
|
||
<div class="step">勾选 "Disable cache"</div>
|
||
<div class="step">刷新页面 (F5)</div>
|
||
<div class="step">进入 资产管理系统 → 采购管理 → 采购订单</div>
|
||
<div class="step">点击任意订单的 "登记到货" 按钮</div>
|
||
<div class="step">检查是否显示 Warehouse 图标</div>
|
||
</div>
|
||
|
||
<div class="code" style="margin-top: 30px;">
|
||
<strong>使用位置:</strong><br>
|
||
文件: /components/asset/AssetPurchase.tsx<br>
|
||
行号: 2210<br>
|
||
代码: <Warehouse className="w-5 h-5 text-green-600 flex-shrink-0 mt-0.5" />
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script>
|
||
function clearCache() {
|
||
if ('caches' in window) {
|
||
caches.keys().then(function(names) {
|
||
for (let name of names) {
|
||
caches.delete(name);
|
||
}
|
||
});
|
||
}
|
||
localStorage.clear();
|
||
sessionStorage.clear();
|
||
setTimeout(function() {
|
||
location.reload(true);
|
||
}, 500);
|
||
}
|
||
|
||
// 自动检查
|
||
window.addEventListener('load', function() {
|
||
console.log('%c✅ Warehouse 图标已导入', 'color: #10b981; font-size: 16px; font-weight: bold;');
|
||
console.log('%c位置: /components/asset/AssetPurchase.tsx:47', 'color: #3b82f6;');
|
||
console.log('%c使用: 第 2210 行', 'color: #3b82f6;');
|
||
console.log('%c⚠️ 如仍有错误,请清除缓存并强制刷新', 'color: #f59e0b; font-size: 14px;');
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|