修改密码优化,固定 Header 样式修复
This commit is contained in:
@@ -23,9 +23,10 @@ export function edit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function updatePass(password) {
|
||||
export function updatePass(user) {
|
||||
const data = {
|
||||
password
|
||||
oldPass: user.oldPass,
|
||||
newPass: user.newPass
|
||||
}
|
||||
return request({
|
||||
url: 'api/users/updatePass/',
|
||||
|
||||
@@ -1,26 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
<section class="app-main">
|
||||
<!--<CodeFund />-->
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<keep-alive :include="cachedViews">
|
||||
<router-view :key="key"/>
|
||||
</keep-alive>
|
||||
</transition>
|
||||
</section>
|
||||
<section class="app-main">
|
||||
<transition name="fade-transform" mode="out-in">
|
||||
<keep-alive :include="cachedViews">
|
||||
<router-view :key="key"/>
|
||||
</keep-alive>
|
||||
</transition>
|
||||
<div v-if="$store.state.settings.showFooter" id="el-main-footer">
|
||||
<span v-html="$store.state.settings.footerTxt"/>
|
||||
<span> ⋅ </span>
|
||||
<a href="http://www.beian.miit.gov.cn" target="_blank">{{ $store.state.settings.caseNumber }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import CodeFund from '@/components/CodeFund'
|
||||
export default {
|
||||
name: 'AppMain',
|
||||
// components: { CodeFund },
|
||||
computed: {
|
||||
cachedViews() {
|
||||
return this.$store.state.tagsView.cachedViews
|
||||
@@ -39,7 +34,6 @@ export default {
|
||||
min-height: calc(100vh - 84px);
|
||||
width: 100%;
|
||||
position: relative;
|
||||
padding-bottom: 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -48,13 +42,13 @@ export default {
|
||||
}
|
||||
|
||||
.hasTagsView {
|
||||
.app-main {
|
||||
min-height: calc(100vh - 84px);
|
||||
}
|
||||
.app-main {
|
||||
min-height: calc(100vh - 84px);
|
||||
}
|
||||
|
||||
.fixed-header+.app-main {
|
||||
padding-top: 85px;
|
||||
}
|
||||
.fixed-header+.app-main {
|
||||
padding-top: 85px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ a:hover {
|
||||
overflow: hidden;
|
||||
padding: 10px 6px 0px 6px;
|
||||
height: 33px;
|
||||
font-size: 0.5rem !important;
|
||||
font-size: 0.7rem !important;
|
||||
color: #7a8b9a;
|
||||
letter-spacing: 0.8px;
|
||||
font-family: Arial, sans-serif !important;
|
||||
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.loading = true
|
||||
updatePass(this.form.confirmPass).then(res => {
|
||||
updatePass(this.form).then(res => {
|
||||
this.resetForm()
|
||||
this.$notify({
|
||||
title: '密码修改成功,请重新登录',
|
||||
|
||||
Reference in New Issue
Block a user