|
@@ -1715,7 +1715,18 @@ struct NewIndex {
|
|
|
content: '置顶'
|
|
content: '置顶'
|
|
|
})
|
|
})
|
|
|
.onClick(async() => {
|
|
.onClick(async() => {
|
|
|
- ToastUtil.showToast('当前版本暂不支持置顶')
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ await this.webdavManager.pinAccount(account)
|
|
|
|
|
+ // 重新加载网盘账户列表以更新UI排序
|
|
|
|
|
+ await this.loadWebDavAccounts()
|
|
|
|
|
+ ToastUtil.showToast('置顶成功')
|
|
|
|
|
+ LogUtil.info('heanup NewIndex', '网盘账户置顶成功:', account.name)
|
|
|
|
|
+ this.logAccount('info', `网盘账户置顶成功: ${account.name}`)
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ LogUtil.error('heanup NewIndex', `置顶网盘账户失败: ${(error as Error).message}`)
|
|
|
|
|
+ ToastUtil.showToast('置顶失败')
|
|
|
|
|
+ this.logAccount('error', `置顶网盘账户失败: ${(error as Error).message}`)
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
MenuItem({
|
|
MenuItem({
|