Browse Source

iconList 组件修复

main
pixel 5 years ago
parent
commit
97f52ce36c
  1. 12
      web/src/utils/request.js
  2. 13
      web/src/view/iconList/component/iconList.vue
  3. 5
      web/src/view/iconList/index.vue

12
web/src/utils/request.js

@ -21,13 +21,13 @@ const showLoading = () => {
} }
const closeLoading = () => { const closeLoading = () => {
acitveAxios--
if (acitveAxios <= 0) {
clearTimeout(timer)
loadingInstance && loadingInstance.close()
acitveAxios--
if (acitveAxios <= 0) {
clearTimeout(timer)
loadingInstance && loadingInstance.close()
}
} }
}
//http request 拦截器
//http request 拦截器
service.interceptors.request.use( service.interceptors.request.use(
config => { config => {
showLoading() showLoading()

13
web/src/view/iconList/component/iconList.vue

@ -1,13 +0,0 @@
<template>
</template>
<script>
export default {
name: "iconList"
}
</script>
<style scoped>
</style>

5
web/src/view/iconList/index.vue

@ -1404,15 +1404,12 @@
</template> </template>
<script> <script>
import iconList from "./component/iconList"
export default { export default {
name: 'IconList', name: 'IconList',
data() { data() {
return {} return {}
}, },
components: {
iconList
}
} }
</script> </script>

Loading…
Cancel
Save