diff --git a/src/assets/css/style.scss b/src/assets/css/style.scss index 4d7d2de9..d7e624b8 100644 --- a/src/assets/css/style.scss +++ b/src/assets/css/style.scss @@ -4,6 +4,9 @@ @use 'element-plus/theme-chalk/dark/css-vars' as *; :root { + //修改element-ui的进度条底色 + --el-border-color-lighter: #d1d1d1 !important; + --color-background: #E6E8EB; //--color-main-bg: #E6E8EB; --color-main-bg: rgb(238, 240, 244); diff --git a/src/hooks/dict.ts b/src/hooks/dict.ts index cf02dfde..9645d855 100644 --- a/src/hooks/dict.ts +++ b/src/hooks/dict.ts @@ -87,25 +87,6 @@ export function useArticleOptions() { } } -//同步到我的词典列表 -export function syncMyDictList(dict: Dict, isCustom = true) { - const store = useBaseStore() - //任意修改,都将其变为自定义词典 - dict.custom = isCustom - if (isArticle(dict.type)) { - dict.length = dict.articles.length - } else { - dict.length = dict.words.length - } - - let rIndex = store.myDictList.findIndex(v => v.id === dict.id) - if (rIndex > -1) { - store.myDictList[rIndex] = cloneDeep(dict) - } else { - store.myDictList.push(cloneDeep(dict)) - } -} - export function getCurrentStudyWord() { // console.time() const store = useBaseStore() diff --git a/src/main.ts b/src/main.ts index 21809bb5..c881570c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,6 @@ import './assets/css/style.scss' import App from './App.vue' // import Mobile from './Mobile.vue' import {createPinia} from "pinia" -// import ElementPlus from 'element-plus' import ZH from "@/locales/zh-CN.ts"; import {createI18n} from 'vue-i18n' import router from "@/router.ts"; diff --git a/src/pages/mobile/DictDetail.vue b/src/pages/mobile/DictDetail.vue index d6544a17..b55613f4 100644 --- a/src/pages/mobile/DictDetail.vue +++ b/src/pages/mobile/DictDetail.vue @@ -17,21 +17,16 @@ const store = useBaseStore() let index = $ref(0) const router = useRouter() - -const onChange = ({selectedValues}) => { - showToast(`当前值: ${selectedValues.join(',')}`); -}; - onMounted(() => { }) function handleDel(item: Dict, index: number) { - if (item.id === store.currentDict.id) { + if (item.id === store.sdict.id) { //TODO } else { showConfirmDialog({title: '确认删除?', message: '删除后无法撤销,确认删除吗?',}) .then(() => { - store.myDictList.splice(index, 1) + store.word.bookList.splice(index, 1) }) } } @@ -53,10 +48,10 @@ function handleDel(item: Dict, index: number) {
-
+
{{ item.name }}
- 当前在学 + 当前在学