Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Commit 1d28bde

Browse files
committed
fix: 将vuex-electron替换成MaverickMartyn
vuex-electron存在很一个严重的问题。即使添加了blacklist,但是在下次非blacklist的commit的时候,还是会把所有的state进行持久化。鉴于vuex-electron已经不做维护,使用 MaverickMartyn/vuex-electron 作为替代 refs: vue-electron/vuex-electron#19 refs: vue-electron/vuex-electron#22 refs: https://github.com/MaverickMartyn/vuex-electron
1 parent 0fbace4 commit 1d28bde

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"vue-router": "^3.2.0",
3030
"vue-uuid": "^2.0.2",
3131
"vuex": "^3.4.0",
32-
"vuex-electron": "^1.0.3"
32+
"vuex-electron": "MaverickMartyn/vuex-electron"
3333
},
3434
"devDependencies": {
3535
"@types/cookie": "^0.4.0",

src/plugins/btclient/qbittorrent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class Qbittorrent implements TorrentClient {
6464

6565
return await axios.request({
6666
method: method,
67-
url: urljoin(this.config.address,'/api/v2', path),
67+
url: urljoin(this.config.address, '/api/v2', path),
6868
params: params,
6969
data: data,
7070
headers: headers,

src/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const initializer = (store: Store<any>) => initializeStores(store)
1818
export const plugins = [
1919
initializer,
2020
createPersistedState({
21-
blacklist: [
21+
ignoredCommits: [
2222
'Mission/appendLog',
2323
'Mission/updateCurrentMissionState'
2424
]

yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9448,10 +9448,9 @@ vue@^2.6.11:
94489448
resolved "https://registry.npm.taobao.org/vue/download/vue-2.6.11.tgz?cache=0&sync_timestamp=1594226819006&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue%2Fdownload%2Fvue-2.6.11.tgz#76594d877d4b12234406e84e35275c6d514125c5"
94499449
integrity sha1-dllNh31LEiNEBuhONSdcbVFBJcU=
94509450

9451-
vuex-electron@^1.0.3:
9451+
vuex-electron@MaverickMartyn/vuex-electron:
94529452
version "1.0.3"
9453-
resolved "https://registry.npm.taobao.org/vuex-electron/download/vuex-electron-1.0.3.tgz#c8ce0fd06ed9d3beb8881bce39bf76c9fcdc5611"
9454-
integrity sha1-yM4P0G7Z0764iBvOOb92yfzcVhE=
9453+
resolved "https://codeload.github.com/MaverickMartyn/vuex-electron/tar.gz/e6051fa60eb602d7757d30e5d86f0a7bef8c6885"
94559454
dependencies:
94569455
deepmerge "^2.1.1"
94579456
electron-store "^2.0.0"

0 commit comments

Comments
 (0)