Browse Source

优化

master
安虹睿 1 year ago
parent
commit
5c61ae9fca
  1. 8
      Code/Fe/src/components/umyTable/index.vue
  2. 10
      Code/Fe/src/permission.js

8
Code/Fe/src/components/umyTable/index.vue

@ -347,6 +347,7 @@
<!-- json弹窗复制的json内容 -->
<el-dialog
id="copyJsonTextarea_dialog_ref"
:visible.sync="showJsonCopy"
:modal-append-to-body="false"
:append-to-body="true"
@ -845,7 +846,6 @@ export default {
// Json
copyJsonHandle(){
this.showJsonCopy = true
// this.$refs.copyJsonTextarea_ref.focus()
navigator.clipboard.writeText(this.showJsonData_str)
.then(() => {
this.$message.success('复制成功');
@ -856,9 +856,9 @@ export default {
this.$nextTick(()=>{
if(this.$refs.copyJsonTextarea_ref){
this.$refs.copyJsonTextarea_ref.focus()
// this.$nextTick(()=>{
// this.$refs.copyJsonTextarea_ref.scrollTop = 0
// })
this.$nextTick(()=>{
document.getElementById('copyJsonTextarea_dialog_ref').scrollTop = 0
})
}
})
},

10
Code/Fe/src/permission.js

@ -81,8 +81,8 @@ router.beforeEach(async (to, from, next) => {
}
}else{
// 重新获取api接口表头
const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){
// const _interfaceBoardColumnsNames = localStorage.getItem("interfaceBoardColumnsNames")
// if( !_interfaceBoardColumnsNames || _interfaceBoardColumnsNames == 'undefined' || _interfaceBoardColumnsNames == 'null'){
getInterfaceBoard().then(result => {
let _zh = localStorage.getItem('columnsApiNamesZh')
localStorage.setItem("interfaceBoardColumnsNames", JSON.stringify(result.localization.values[_zh]));
@ -90,9 +90,9 @@ router.beforeEach(async (to, from, next) => {
next()
},0)
})
}else{
next()
}
// }else{
// next()
// }
}

Loading…
Cancel
Save