add drag icon for dragable rows

This commit is contained in:
RockYang
2024-08-12 14:00:50 +08:00
parent 740c3c1b00
commit 373021c191
14 changed files with 86 additions and 18 deletions

View File

@@ -15,8 +15,8 @@ export function checkSession() {
return new Promise((resolve, reject) => {
httpGet('/api/user/session').then(res => {
item.data = res.data
// cache expires after 5 minutes
item.expire = Date.now() + 1000 * 60 * 5
// cache expires after 10 secs
item.expire = Date.now() + 1000 * 10
Storage.set(userDataKey, item)
resolve(item.data)
}).catch(err => {
@@ -38,8 +38,7 @@ export function checkAdminSession() {
return new Promise((resolve, reject) => {
httpGet('/api/admin/session').then(res => {
item.data = res.data
// cache expires after 10 minutes
item.expire = Date.now() + 1000 * 60 * 10
item.expire = Date.now() + 1000 * 10
Storage.set(adminDataKey, item)
resolve(item.data)
}).catch(err => {
@@ -60,8 +59,7 @@ export function getSystemInfo() {
return new Promise((resolve, reject) => {
httpGet('/api/config/get?key=system').then(res => {
item.data = res
// cache expires after 10 minutes
item.expire = Date.now() + 1000 * 60 * 10
item.expire = Date.now() + 1000 * 10
Storage.set(systemInfoKey, item)
resolve(item.data)
}).catch(err => {
@@ -79,8 +77,7 @@ export function getLicenseInfo() {
return new Promise((resolve, reject) => {
httpGet('/api/config/license').then(res => {
item.data = res
// cache expires after 10 minutes
item.expire = Date.now() + 1000 * 60 * 10
item.expire = Date.now() + 1000 * 10
Storage.set(licenseInfoKey, item)
resolve(item.data)
}).catch(err => {