Skip to content

Commit c9a1e96

Browse files
authored
清理一些注释等内容 (#30)
1 parent 33d93ac commit c9a1e96

File tree

7 files changed

+11
-19
lines changed

7 files changed

+11
-19
lines changed

src/components/Screenfull/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
methods: {
2424
click() {
2525
if (!screenfull.enabled) {
26-
this.$message({
26+
Message({
2727
message: 'you browser can not work',
2828
type: 'warning'
2929
})

src/components/SizeSelect/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434
this.$ELEMENT.size = size
3535
this.$store.dispatch('app/setSize', size)
3636
this.refreshView()
37-
this.$message({
37+
Message({
3838
message: 'Switch Size Success',
3939
type: 'success'
4040
})

src/utils/request.js

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ service.interceptors.request.use(
2727
},
2828
error => {
2929
// do something with request error
30-
console.log(error) // for debug
3130
return Promise.reject(error)
3231
}
3332
)

src/views/dashboard/components/PanelGroup.vue

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
<div class="card-panel" @click="handleSetLineChartData(item.dataType)">
66
<div class="card-panel-icon-wrapper icon-people">
77
<svg-icon :icon-class="item.icon" class-name="card-panel-icon" />
8-
<!-- <el-link :href="item.path"><svg-icon :icon-class="item.icon" class-name="card-panel-icon" /></el-link> -->
98
</div>
109
<div class="card-panel-description">
1110
<div class="card-panel-text">
12-
<!-- <el-link :href="item.path"> -->
1311
{{ item.dataName }}
14-
<!-- </el-link> -->
1512
</div>
1613
<count-to :start-val="0" :end-val="item.dataCount" :duration="2600" class="card-panel-num" />
1714
</div>
@@ -41,9 +38,7 @@ export default {
4138
try {
4239
const { data } = await getDash()
4340
this.dataInfo = data
44-
} finally {
45-
console.log(this.dataInfo)
46-
}
41+
} finally {}
4742
},
4843
handleSetLineChartData(type) {
4944
this.$emit('handleSetLineChartData', type)

src/views/login/index.vue

-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ export default {
152152
})
153153
},
154154
changePass() {
155-
// console.log(75545)
156155
// window.location.href='/changePass'
157156
this.$router.push({ path: '/changePass' })
158157
},

src/views/personnel/fieldRelation/index.vue

+6-7
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,10 @@ export default {
766766
767767
// 提交表单
768768
submitForm(e) {
769-
// console.log(e,765)
770769
let flag, attributes
771770
if (this.checked[0] === '用户字段动态关联') {
772771
if (this.userVal === '') {
773-
this.$message({
772+
Message({
774773
message: '请选择类型标志',
775774
type: 'warning'
776775
})
@@ -780,7 +779,7 @@ export default {
780779
attributes = this.dialogFormData
781780
} else {
782781
if (this.groupVal === '') {
783-
this.$message({
782+
Message({
784783
message: '请选择类型标志',
785784
type: 'warning'
786785
})
@@ -810,13 +809,13 @@ export default {
810809
}
811810
this.resetForm()
812811
this.getTableData()
813-
this.$message({
812+
Message({
814813
showClose: true,
815814
message: "操作成功",
816815
type: 'success'
817816
})
818817
} else {
819-
this.$message({
818+
Message({
820819
showClose: true,
821820
message: '表单校验失败',
822821
type: 'warn'
@@ -860,14 +859,14 @@ export default {
860859
this.loading = false
861860
}
862861
this.getTableData()
863-
this.$message({
862+
Message({
864863
showClose: true,
865864
message: "删除成功",
866865
type: 'success'
867866
})
868867
})
869868
.catch(() => {
870-
this.$message({
869+
Message({
871870
showClose: true,
872871
type: 'info',
873872
message: '已取消删除'

src/views/profile/components/Account.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ export default {
105105
106106
this.submitLoading = false
107107
if (code !== 0) {
108-
return this.$message({
108+
return Message({
109109
showClose: true,
110110
message: msg,
111111
type: 'error'
112112
})
113113
}
114114
this.resetForm()
115-
this.$message({
115+
Message({
116116
showClose: true,
117117
message: '密码修改成功,请重新登录',
118118
type: 'success'

0 commit comments

Comments
 (0)