fix(admin): 菜单管理去掉上移/下移,排序改由 sort_order 维护(产品已淘汰即时应序)
This commit is contained in:
@@ -45,12 +45,14 @@ test('test_task_058_menu_sort_invalid_input_rejected', () => {
|
||||
})
|
||||
|
||||
test('test_task_058_menu_sort_dependency_failure_returns_actionable_message', () => {
|
||||
// 依赖失败/排序走 adapter:POST /column/reorder 提交 ordered_ids,页面不内联请求。
|
||||
// 依赖失败:排序走 adapter(POST /column/reorder 提交 ordered_ids),页面不内联请求;
|
||||
// 页面上移/下移已按产品决策移除,排序改由 sort_order 字段维护。
|
||||
const api = readSource('src/pages/account/menu-manage-api.ts')
|
||||
assert.match(api, /reorderMenus|reorderColumns/)
|
||||
assert.match(api, /column\/reorder/)
|
||||
assert.match(api, /ordered_ids|orderedIds/)
|
||||
const page = readSource('src/pages/account/MenusPage.vue')
|
||||
assert.match(page, /siblingOrderAfterMove|reorderMenus|reorderColumns/)
|
||||
assert.equal(/上移|下移/.test(page), false, '菜单页不再提供上移/下移按钮')
|
||||
assert.equal(/http\.post/.test(page), false, '页面不内联排序请求')
|
||||
assert.match(page, /sortOrder/, '排序通过 sort_order 字段维护')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user