fix(miniapp): inline createUuid in config to fix DevTools require

WeChat DevTools failed to resolve utils/uuid.js at runtime; move UUID
generation into config.js which is already loaded by app.js.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-07-11 13:02:34 +08:00
parent c842119929
commit 3163445a9d
4 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const SESSION_KEY = 'tkmind_session';
const { createUuid } = require('./uuid');
const { createUuid } = require('./config');
let apiBaseUrl = '';
let cookie = '';