Skip to content

Commit

Permalink
fix: Route-View, change dev port 8000
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Mar 22, 2019
1 parent 5340f48 commit fec00eb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
19 changes: 19 additions & 0 deletions src/components/TagSelect/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import PropTypes from 'ant-design-vue/es/_util/vue-types'
// TODO
export default {
name: 'TagSelect',
props: {
defaultValue: {
type: [PropTypes.arrayOf(String), PropTypes.arrayOf(Number)],
default: () => {}
},
expandable: {
type: Boolean,
default: false
},
hideCheckAll: {
type: Boolean,
default: false
}
}
}
2 changes: 1 addition & 1 deletion src/layouts/UserLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</template>

<script>
import { RouteView } from '@/layouts'
import RouteView from './RouteView'
import { mixinDevice } from '@/utils/mixin'
export default {
Expand Down
10 changes: 2 additions & 8 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,14 @@ module.exports = {
},

devServer: {
// development server port 8000
port: 8000,
proxy: {
'/api': {
// target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro',
ws: false,
changeOrigin: true
},
'/gateway': {
target: 'https://www.easy-mock.com/mock/5b7bce071f130e5b7fe8cd7d/antd-pro',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/gateway': '/api'
}
}
}
},
Expand Down

0 comments on commit fec00eb

Please sign in to comment.