mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修改workflow变量
This commit is contained in:
@@ -76,10 +76,8 @@ const Script = ({ headerStyle, isPhone, theme }: any) => {
|
||||
request
|
||||
.get(`${config.apiPrefix}scripts/files`)
|
||||
.then((data) => {
|
||||
const sortData = data.data.sort((a: any, b: any) => b.mtime - a.mtime);
|
||||
setData(sortData);
|
||||
setFilterData(sortData);
|
||||
onSelect(sortData[0].value, sortData[0]);
|
||||
setData(data.data);
|
||||
setFilterData(data.data);
|
||||
})
|
||||
.finally(() => setLoading(false));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user