Skip to content

Commit a5bca8a

Browse files
author
毛瑞
committed
Fix: 类型错误
1 parent 783656e commit a5bca8a

11 files changed

Lines changed: 625 additions & 605 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v 1.3.0
44

55
- 通用鉴权等
6+
- 累积更新
67

78
## v 1.2.18
89

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ http {
911911
2. 先执行 `yarn lint` 等相关命令, 待消除所有错误后, 再提交
912912
3. 确保开发时无相关报错(浏览器中页面遮罩显示错误, 控制台打印警告), 特别注意 `console.log` , `debugger``定义但未使用变量`, 只在开发环境是警告, 其他都是错误
913913
914+
- class 组件不要使用全局 API 函数, 比如 refresh 等
915+
914916
### 问题及思考
915917
916918
- Vue 异步组件加载失败重试: 最好还是 Vue 对异步组件提供支持[#9788](https://github.com/vuejs/vue/issues/9788)

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-tpl",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"private": false,
55
"description": "vue + vuex + vue router + TypeScript(支持 JavaScript) 模板",
66
"author": "毛瑞 <Maorey@Foxmail.com>",
@@ -29,12 +29,12 @@
2929
"register-service-worker": "^1.7.1",
3030
"screenfull": "^5.0.2",
3131
"three": "^0.118.3",
32-
"tinymce": "^5.3.2",
32+
"tinymce": "^5.4.0",
3333
"vue": "^2.6.11",
3434
"vue-class-component": "^7.2.3",
35-
"vue-property-decorator": "^9.0.0",
35+
"vue-property-decorator": "9.0.0",
3636
"vue-router": "^3.3.4",
37-
"vuex": "^3.4.0",
37+
"vuex": "^3.5.1",
3838
"vuex-class": "^0.3.2",
3939
"vuex-module-decorators": "^0.17.0",
4040
"zdog": "^1.1.2",

src/config/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default {
4747
[SPA.error]: '50x',
4848
/*! 【↑ SPA配置 ↑】 */
4949

50+
/*! 路由模式 */
5051
/* 路由模式 */
5152
mode: 'hash',
5253

src/functions/router/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface RouteMeta {
1414
/** 标题 */
1515
title: string
1616
/** 父路由 */
17-
parent?: IRouteConfig
17+
parent?: RouteConfig
1818
/** 路由最大缓存时间 */
1919
alive?: number
2020
/** 下次访问路由是否需要重新加载 */
@@ -30,9 +30,6 @@ declare global {
3030
interface IRoute extends Route {
3131
meta: RouteMeta
3232
}
33-
interface IRouteConfig extends RouteConfig {
34-
meta: RouteMeta
35-
}
3633
}
3734

3835
/** 跳转地址对象 */

src/libs/components/senior.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,8 @@
9797
background: $colorScrollBarHover;
9898
}
9999
}
100+
101+
// 弹窗
102+
.el-dialog__header {
103+
border-bottom: $borderBase;
104+
}

src/pages/index/components/charts/Line.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @Date: 2019-07-08 16:57:33
55
-->
66
<template>
7-
<div @mouseenter="refresh" />
7+
<div @mouseenter="update" />
88
</template>
99

1010
<script lang="ts">
@@ -146,10 +146,10 @@ export default class extends Vue {
146146
} as EChartOption
147147
}
148148
149-
this.refresh()
149+
this.update()
150150
}
151151
152-
private refresh() {
152+
private update() {
153153
const option = this.option
154154
const chart = echarts.getInstanceByDom(this.$el as HTMLDivElement)
155155
@@ -158,7 +158,7 @@ export default class extends Vue {
158158
chart.setOption(option)
159159
160160
this.clear()
161-
this.interval = setInterval(() => this.refresh(), INTERVAL)
161+
this.interval = setInterval(() => this.update(), INTERVAL)
162162
}
163163
}
164164

src/pages/index/components/charts/Rose.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @Date: 2019-07-31 17:02:46
55
-->
66
<template>
7-
<div @mouseenter="refresh" />
7+
<div @mouseenter="update" />
88
</template>
99

1010
<script lang="ts">
@@ -79,10 +79,10 @@ export default class extends Vue {
7979
},
8080
} as any
8181
82-
this.refresh()
82+
this.update()
8383
}
8484
85-
private refresh() {
85+
private update() {
8686
const option = this.option
8787
const chart = echarts.getInstanceByDom(this.$el as HTMLDivElement)
8888
@@ -91,7 +91,7 @@ export default class extends Vue {
9191
chart.setOption(option)
9292
9393
this.clear()
94-
this.interval = setInterval(() => this.refresh(), INTERVAL)
94+
this.interval = setInterval(() => this.update(), INTERVAL)
9595
}
9696
}
9797

src/pages/index/components/visual/Ripple/ripple.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Ripple extends AnimationLoop {
9797
// Move the eye around the plane
9898
uView: () =>
9999
new Matrix4().lookAt({
100+
up: [],
100101
center: [0, 0, 0],
101102
eye: [
102103
(Math.cos(this.timeline.getTime(eyeXChannel)) * SIDE) / 2,

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
"incremental": true,
1313
"diagnostics": true,
1414
"alwaysStrict": false,
15+
"skipLibCheck": true,
1516
"noEmitHelpers": true,
1617
"importHelpers": true,
1718
"esModuleInterop": true,
1819
"tsBuildInfoFile": "compile/.buildInfo",
1920
"moduleResolution": "node",
2021
"noErrorTruncation": true,
2122
"resolveJsonModule": true,
23+
"allowUnusedLabels": true,
2224
"strictBindCallApply": true,
2325
"noImplicitUseStrict": true,
2426
"skipDefaultLibCheck": true,
@@ -70,6 +72,7 @@
7072
"tests/**/*.tsx"
7173
],
7274
"exclude": [
73-
"node_modules"
75+
"**/node_modules/**",
76+
"**/__tests__/**"
7477
]
7578
}

0 commit comments

Comments
 (0)