Skip to content

Commit a6ef1d5

Browse files
committed
#update
1 parent 381bf07 commit a6ef1d5

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

src/views/dashboard/editor/index.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<el-col :span="6">
3636
<el-card class="box-card">
3737
<div slot="header" class="box-card-header">
38-
<pan-thumb class="panThumb" :image="avatar"> 你的权限:
38+
<pan-thumb class="panThumb" :image="proxyImage(avatar)"> 你的权限:
3939
<span class="pan-info-roles" :key='item' v-for="item in ownerPermissions">{{item}}</span>
4040
</pan-thumb>
4141
</div>
@@ -82,6 +82,7 @@
8282
import lineChart from './lineChart';
8383
import countTo from 'vue-count-to';
8484
import todoList from 'components/TodoList';
85+
import proxyImage from '../../../utils/proxyImage'
8586
export default {
8687
name: 'dashboard-editor',
8788
components: { panThumb, countTo, pieChart, lineChart, barChart, todoList },
@@ -102,7 +103,10 @@
102103
'avatar',
103104
'ownerPermissions'
104105
])
105-
}
106+
},
107+
methods: {
108+
proxyImage
109+
}
106110
}
107111
</script>
108112

src/views/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</el-form-item>
1010
<el-form-item prop="password">
1111
<span class="svg-container"><icon-svg icon-class="mima"></icon-svg></span>
12-
<el-input name="password" type="password" @keyup.enter.native="handleLogin" v-model="loginForm.password" autoComplete="on"
12+
<el-input name="password" type="password" @keyup.enter.native="handleLogin" v-model="loginForm.password"
1313
placeholder="密码"></el-input>
1414
</el-form-item>
1515
<el-form-item>

src/views/permission/detail.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export default {
103103
type: 'success',
104104
duration: 2000
105105
})
106+
this.$emit('submit')
106107
}, () => {})
107108
}, () => {})
108109
},
@@ -116,17 +117,18 @@ export default {
116117
type: 'success',
117118
duration: 2000
118119
})
120+
this.$emit('submit')
119121
}, () => {})
120122
}, () => {})
121123
},
122124
cancel () {
123125
this.$emit('cancel')
124-
},
125-
watch: {
126-
dialogFormVisible () {
127-
if (this.$refs.detailForm) {
128-
this.$refs.detailForm.resetFields()
129-
}
126+
}
127+
},
128+
watch: {
129+
dialogFormVisible () {
130+
if (this.$refs.detailForm) {
131+
this.$refs.detailForm.resetFields()
130132
}
131133
}
132134
}

src/views/role/detail.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export default {
106106
type: 'success',
107107
duration: 2000
108108
})
109+
this.$emit('submit')
109110
}, () => {})
110111
}, () => {})
111112
},
@@ -119,6 +120,7 @@ export default {
119120
type: 'success',
120121
duration: 2000
121122
})
123+
this.$emit('submit')
122124
}, () => {})
123125
}, () => {})
124126
},

src/views/user/detail.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@
240240
type: 'success',
241241
duration: 2000
242242
})
243+
this.$emit('submit')
243244
}, () => {})
244245
}, () => {
245246
})
@@ -254,6 +255,7 @@
254255
type: 'success',
255256
duration: 2000
256257
})
258+
this.$emit('submit')
257259
}, () => {})
258260
}, () => {
259261
})

0 commit comments

Comments
 (0)