From badae42d9561fc155a45b152f496e2ca955a5532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=94=AF?= <997132391@qq.com> Date: Thu, 17 Sep 2020 16:10:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(vuex):=20=E6=B7=BB=E5=8A=A0=E4=BA=86=20vue?= =?UTF-8?q?x=20=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++++++++++++++ README.md | 6 +++--- package.json | 10 +++++----- src/store/index.ts | 3 ++- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8c0b9..7511c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [0.1.6](https://github.com/ibwei/vue3-base/compare/v0.1.8...v0.1.6) (2020-09-17) + + +### Bug Fixes + +* **readme.md:** 修改项目说明文档 ([0065d42](https://github.com/ibwei/vue3-base/commit/0065d420b18ee3ddc13396b1436faee090806a16)) + + +### Features + +* **测试:** 添加测试例子,完善vuex的类型 ([b833160](https://github.com/ibwei/vue3-base/commit/b833160194808b4fd04aa0dbca1223449c7d1e88)) + + + ## 0.1.5 (2020-09-09) ### Bug Fixes diff --git a/README.md b/README.md index 615c7f2..4dec12d 100644 --- a/README.md +++ b/README.md @@ -72,10 +72,10 @@ |-- README.md 项目说明 |-- babel.config.js babel 设置 |-- global.d.ts 全局的 type - |-- package.json npm 配置 - |-- tsconfig.json typescript 配置 + |-- package.json npm 配置 + |-- tsconfig.json typescript 配置 |-- typedoc.json 文档配置文件 - |-- vue.config.js vue-cli 脚手架配置文件 + |-- vue.config.js vue-cli 脚手架配置文件 ``` #### 组件编写 diff --git a/package.json b/package.json index 29d5299..9a26aa8 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,15 @@ { - "name": "vue3-ts-base", - "version": "0.1.6", + "name": "vue3-base-type", + "version": "0.1.7", "description": "一个使用vue3+typescript 搭建的项目基础架构类型声明库", "author": { "name": "ibwei", "email": "997132391@qq.com", "url": "http://me.ibwei.com" }, + "publishConfig": { + "registry": "https://registry.npmjs.org/" + }, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", @@ -133,9 +136,6 @@ "base" ], "license": "MIT", - "publishConfig": { - "registry": "https://npm.pkg.github.com/" - }, "repository": { "type": "git", "url": "https://github.com/ibwei/vue3-base" diff --git a/src/store/index.ts b/src/store/index.ts index 64e969d..549d077 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1,4 +1,4 @@ -import { createStore } from 'vuex' +import { createStore, createLogger } from 'vuex' import createPersistedState from 'vuex-persistedstate' import mutations from './mutations' import modules from './modules' @@ -12,6 +12,7 @@ const store: StoreInstance = createStore({ actions: {}, modules: { ...modules }, plugins: [ + createLogger(), createPersistedState({ paths: ['app'] })