mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-27 22:34:43 +08:00
webui: fix bugs. adjust setting page.
This commit is contained in:
@@ -24,34 +24,6 @@ const items: SettingItem<RssParser>[] = [
|
||||
label: () => t('config.parser_set.enable'),
|
||||
type: 'switch',
|
||||
},
|
||||
{
|
||||
configKey: 'type',
|
||||
label: () => t('config.parser_set.source'),
|
||||
type: 'select',
|
||||
css: 'w-115px',
|
||||
prop: {
|
||||
items: sourceItems,
|
||||
},
|
||||
},
|
||||
{
|
||||
configKey: 'token',
|
||||
label: () => t('config.parser_set.token'),
|
||||
type: 'input',
|
||||
prop: {
|
||||
type: 'text',
|
||||
placeholder: 'token',
|
||||
},
|
||||
},
|
||||
{
|
||||
configKey: 'custom_url',
|
||||
label: () => t('config.parser_set.url'),
|
||||
type: 'input',
|
||||
prop: {
|
||||
type: 'text',
|
||||
placeholder: 'mikanime.tv',
|
||||
},
|
||||
bottomLine: true,
|
||||
},
|
||||
{
|
||||
configKey: 'language',
|
||||
label: () => t('config.parser_set.language'),
|
||||
@@ -60,14 +32,6 @@ const items: SettingItem<RssParser>[] = [
|
||||
items: langs,
|
||||
},
|
||||
},
|
||||
{
|
||||
configKey: 'parser_type',
|
||||
label: () => t('config.parser_set.type'),
|
||||
type: 'select',
|
||||
prop: {
|
||||
items: parserMethods,
|
||||
},
|
||||
},
|
||||
{
|
||||
configKey: 'filter',
|
||||
label: () => t('config.parser_set.exclude'),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { BangumiRule } from '#/bangumi';
|
||||
import { ruleTemplate } from '#/bangumi';
|
||||
import type { ApiSuccess } from '#/api';
|
||||
|
||||
export const useBangumiStore = defineStore('bangumi', () => {
|
||||
const message = useMessage();
|
||||
@@ -45,8 +46,8 @@ export const useBangumiStore = defineStore('bangumi', () => {
|
||||
getAll();
|
||||
}
|
||||
|
||||
function actionSuccess({ status }) {
|
||||
message.success(status);
|
||||
function actionSuccess(apiRes: ApiSuccess) {
|
||||
message.success(apiRes.msg_en);
|
||||
refresh();
|
||||
}
|
||||
onUpdateRuleResult(actionSuccess);
|
||||
|
||||
Reference in New Issue
Block a user