浏览代码

fix: Route-View, change dev port 8000

Sendya 6 年之前
父节点
当前提交
fec00eb16a
共有 3 个文件被更改,包括 22 次插入9 次删除
  1. 19 0
      src/components/TagSelect/index.jsx
  2. 1 1
      src/layouts/UserLayout.vue
  3. 2 8
      vue.config.js

+ 19 - 0
src/components/TagSelect/index.jsx

@@ -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
+    }
+  }
+}

+ 1 - 1
src/layouts/UserLayout.vue

@@ -30,7 +30,7 @@
 </template>
 
 <script>
-import { RouteView } from '@/layouts'
+import RouteView from './RouteView'
 import { mixinDevice } from '@/utils/mixin'
 
 export default {

+ 2 - 8
vue.config.js

@@ -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'
-        }
       }
     }
   },