From d01295c254063b3349a86a4474e04a62b284bd19 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 24 三月 2026 16:26:07 +0800
Subject: [PATCH] 一些配置
---
Code/WCS/WIDESEAWCS_Client/src/views/fix.js | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/fix.js b/Code/WCS/WIDESEAWCS_Client/src/views/fix.js
new file mode 100644
index 0000000..82d7d39
--- /dev/null
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/fix.js
@@ -0,0 +1,17 @@
+const fs = require('fs');
+const path = require('path');
+
+const filePath = path.join(__dirname, 'Index.vue');
+
+let content = fs.readFileSync(filePath, 'utf8');
+
+// Read replacements from external JSON to avoid encoding issues in script
+const replacements = JSON.parse(fs.readFileSync(path.join(__dirname, 'replacements.json'), 'utf8'));
+
+for (const [old, newStr] of Object.entries(replacements)) {
+ content = content.split(old).join(newStr);
+}
+
+fs.writeFileSync(filePath, content, 'utf8');
+
+console.log('Fixed ' + Object.keys(replacements).length + ' replacements');
--
Gitblit v1.9.3