docs: replace environment-specific IPs with localhost

This commit is contained in:
wangliang
2026-10-23 10:41:14 +08:00
parent 2803fb5dd1
commit 1ae25f1597
27 changed files with 66 additions and 66 deletions
+4 -4
View File
@@ -5,9 +5,9 @@
*
* <script>
* window.YehwangChatConfig = {
* baseURL: 'http://192.168.31.61:9000',
* baseURL: 'http://localhost:9000',
* inboxID: '10fd5207-d235-4c49-beaa-a65eed0ddd0e',
* identityURL: 'http://192.168.31.61:4100/identity',
* identityURL: 'http://localhost:4100/identity',
* siteJWT: window.__SITE_JWT__ || null // 站点登录后注入
* };
* </script>
@@ -18,9 +18,9 @@
*/
(function () {
var cfg = window.YehwangChatConfig || {};
var baseURL = String(cfg.baseURL || 'http://192.168.31.61:9000').replace(/\/+$/, '');
var baseURL = String(cfg.baseURL || 'http://localhost:9000').replace(/\/+$/, '');
var inboxID = cfg.inboxID || '10fd5207-d235-4c49-beaa-a65eed0ddd0e';
var identityURL = cfg.identityURL || 'http://192.168.31.61:4100/identity';
var identityURL = cfg.identityURL || 'http://localhost:4100/identity';
var state = { loaded: false, userJWT: null };
+3 -3
View File
@@ -44,7 +44,7 @@
<b>排查</b><br />
· 气泡没出现:打开浏览器控制台看 <code>[YehwangChat]</code> / <code>Failed to initialize Libredesk Widget</code> 报错<br />
· 登录身份:页面会先调 bridge <code>POST /identity</code> 拿 <code>userJWT</code>,再加载 widget<br />
· 聊天窗口打不开:检查 LibreDesk 可信域名里是否有 <code>192.168.31.61:8088</code>(CSP frame-ancestors)
· 聊天窗口打不开:检查 LibreDesk 可信域名里是否有 <code>localhost:8088</code>(CSP frame-ancestors)
</div>
</div>
@@ -68,9 +68,9 @@
function boot() {
var cfg = {
baseURL: 'http://192.168.31.61:9000',
baseURL: 'http://localhost:9000',
inboxID: '10fd5207-d235-4c49-beaa-a65eed0ddd0e',
identityURL: 'http://192.168.31.61:4100/identity',
identityURL: 'http://localhost:4100/identity',
};
if (mode === 'login') {
var siteJwt = params.get('siteJwt');