You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shenyu.apache.org by rom1c77 <28...@qq.com.INVALID> on 2021/09/05 11:50:02 UTC
About Admin Page
issue:
https://github.com/apache/incubator-shenyu/issues/2020
discuss:
I'm use PageHelper replace CommonPager, but too many changes;
Both the incubator-shenyu-dashboard and the shenyu-admin need to be changed;
I can't make up my mind;
BY THE WAY:
I verified that it is available in PG/MYSQL
Such as:
1. `Admin` Controller return `new PageInfo<>(pluginService.listByPage(new PluginQuery(name, enabled, null)))`
2. `Dashboard` plugin.js
effects: {
*fetch(params, { call, put }) {
const { payload } = params;
const json = yield call(getAllPlugins, payload);
if (json.code === 200) {
let { total,list } = json.data; //return PageInfo
list = list.map(item => {
item.key = item.id;
return item;
});
yield put({
type: "savePlugins",
payload: {
total: total,
dataList: list
}
});
}
}
Re: About Admin Page
Posted by XiaoYu <xi...@apache.org>.
Hi, I can't understand you
>