@nine-lab/nine-mu 0.1.235 → 0.1.236
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 +13 -9
- 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 +10 -4
package/package.json
CHANGED
|
@@ -119,10 +119,16 @@ export class NineChat extends HTMLElement {
|
|
|
119
119
|
const asis = await this.#manager.getRoutes();
|
|
120
120
|
|
|
121
121
|
if (parsed?.selected_tool === "source-missing") {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
const hasCreated = parsed?.data.some(item => item.action === 'CREATE');
|
|
123
|
+
const hasUpdated = parsed?.data.some(item => item.action === 'UPDATE');
|
|
124
|
+
|
|
125
|
+
if (hasUpdated || hasCreated) {
|
|
126
|
+
// 진짜 메뉴명 변경이나 이동만 요청한 경우
|
|
127
|
+
nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
|
|
128
|
+
const tobe = (parsed?.data || []).map(({ isNew, action, ...rest }) => rest);
|
|
129
|
+
this.#showDiff(asis, tobe, "json");
|
|
130
|
+
});
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
|
|
128
134
|
|