修改workflow变量

This commit is contained in:
whyour committed 2021-11-12 22:09:02 +08:00
1 parent 3b3dd4c26d
commit ee0b47d101
4 files changed
+45 -67

No files matched your search

+2 -4
View File
@@ -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));
};