@nine-lab/nine-mu 0.1.95 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nine-mu.js +14 -15
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +2 -3
package/package.json
CHANGED
|
@@ -130,8 +130,7 @@ export class NineChat extends HTMLElement {
|
|
|
130
130
|
<div class="menu-icon menu-filter"></div>
|
|
131
131
|
<div class="menu-icon menu-general active"></div>
|
|
132
132
|
<div class="menu-icon menu-setting"></div>
|
|
133
|
-
|
|
134
|
-
<div class="menu2">
|
|
133
|
+
|
|
135
134
|
<div class="menu-icon make-menu"></div>
|
|
136
135
|
<div class="menu-icon source-gen"></div>
|
|
137
136
|
</div>
|
|
@@ -151,7 +150,7 @@ export class NineChat extends HTMLElement {
|
|
|
151
150
|
const res = await api.post(`/nine-mu/source/readFile`, { path: this.#routesPath });
|
|
152
151
|
trace.log(res);
|
|
153
152
|
|
|
154
|
-
if (!
|
|
153
|
+
if (!res || !res?.contents) return;
|
|
155
154
|
|
|
156
155
|
const jsonRoutes = res?.contents ? JSON.parse(res?.contents) : {};
|
|
157
156
|
trace.log(jsonRoutes);
|