diff --git a/package.json b/package.json
index a29fd3c9..51dc7ef3 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "moviepilot",
- "version": "1.3.9-1",
+ "version": "1.3.9-2",
"private": true,
"bin": "dist/service.js",
"scripts": {
@@ -106,4 +106,4 @@
"resolutions": {
"postcss": "8"
}
-}
\ No newline at end of file
+}
diff --git a/src/components/cards/SiteCard.vue b/src/components/cards/SiteCard.vue
index 384cd4e3..afdc8fbe 100644
--- a/src/components/cards/SiteCard.vue
+++ b/src/components/cards/SiteCard.vue
@@ -33,9 +33,6 @@ const testButtonText = ref('测试')
// 测试按钮可用性
const testButtonDisable = ref(false)
-// 更新按钮文字
-const updateButtonText = ref('更新')
-
// 更新按钮可用性
const updateButtonDisable = ref(false)
@@ -48,6 +45,12 @@ const siteEditDialog = ref(false)
// 资源浏览弹窗
const resourceDialog = ref(false)
+// 进度条
+const progressDialog = ref(false)
+
+// 进度文本
+const progressText = ref('请稍候 ...')
+
// 资源浏览表头
const resourceHeaders = [
{ title: '标题', key: 'title', sortable: false },
@@ -138,9 +141,11 @@ async function updateSiteCookie() {
// 更新按钮状态
siteCookieDialog.value = false
- updateButtonText.value = '更新中 ...'
updateButtonDisable.value = true
+ progressDialog.value = true
+ progressText.value = `正在更新 ${cardProps.site?.name} Cookie & UA ...`
+
const result: { [key: string]: any } = await api.get(
`site/cookie/${cardProps.site?.id}`,
{
@@ -156,7 +161,7 @@ async function updateSiteCookie() {
else
$toast.error(`${cardProps.site?.name} 更新失败:${result.message}`)
- updateButtonText.value = '更新'
+ progressDialog.value = false
updateButtonDisable.value = false
}
catch (error) {
@@ -299,7 +304,7 @@ onMounted(() => {
- {{ updateButtonText }}
+ 更新
{
+
+
+
+ {{ progressText }}
+
+
+
+