wjx 3 年之前
父节点
当前提交
d8ddbbfe40
共有 6 个文件被更改,包括 23 次插入32 次删除
  1. 12 8
      .umirc.js
  2. 2 2
      src/pages/About/index.jsx
  3. 2 2
      src/pages/Introduce/index.jsx
  4. 0 4
      src/pages/index.css
  5. 0 9
      src/pages/index.js
  6. 7 7
      src/routes/PrivateRoute.js

+ 12 - 8
.umirc.js

@@ -1,18 +1,22 @@
 
 export default {
-  exportStatic: {
-    // htmlSuffix: true,
-    dynamicRoot: true,
-  },
+  // exportStatic: {
+  //   // htmlSuffix: true,
+  //   dynamicRoot: false,
+  // },
+  // nodeModulesTransform:{
+  //   type: 'none'
+  // },
   targets: {
     ie: 11,
   },
   links: [ { rel: 'icon', href: 'http://questnet.cn/image/logo2.png' }, ],
   title:'趣程官网',
+  mountElementId: 'root12312',
   routes: [
-    { path: '/', component: '@/pages/Home/index' },
-    { path: '/about', component: '@/pages/About/index' },
-    { path: '/introduce', component: '@/pages/Introduce/index' },
-    { path: '/contact', component: '@/pages/ContactUs/index' }
+    { path: '/', component: '@/pages/Home/index.jsx', title: 'Index' },
+    { path: '/about', component: '@/pages/About/index.jsx', title: 'About' },
+    { path: '/introduce', component: '@/pages/Introduce/index.jsx', title: 'Introduce' },
+    { path: '/contact', component: '@/pages/ContactUs/index.jsx', title: 'ContactUs' }
   ]
 }

+ 2 - 2
src/pages/About/index.jsx

@@ -9,7 +9,7 @@ import Teams0 from './Teams0';
 import Content9 from './Content9';
 import Feature3 from './Feature3';
 import Teams4 from './Teams4';
-import Footer1 from './Footer1';
+import Footer1 from '../Home/Footer1';
 
 import {
   Nav00DataSource,
@@ -29,7 +29,7 @@ enquireScreen((b) => {
 
 const { location = {} } = typeof window !== 'undefined' ? window : {};
 
-export default class Home extends React.Component {
+export default class About extends React.Component {
   constructor(props) {
     super(props);
     this.state = {

+ 2 - 2
src/pages/Introduce/index.jsx

@@ -7,7 +7,7 @@ import Nav0 from './Nav0';
 import Content13 from './Content13';
 import Feature1 from './Feature1';
 import Feature2 from './Feature2';
-import Footer1 from './Footer1';
+import Footer1 from '../Home/Footer1';
 
 import {
   Nav00DataSource,
@@ -28,7 +28,7 @@ enquireScreen((b) => {
 
 const { location = {} } = typeof window !== 'undefined' ? window : {};
 
-export default class Home extends React.Component {
+export default class Introduce extends React.Component {
   constructor(props) {
     super(props);
     this.state = {

+ 0 - 4
src/pages/index.css

@@ -1,4 +0,0 @@
-
-.normal {
-  background: #C6F279;
-}

+ 0 - 9
src/pages/index.js

@@ -1,9 +0,0 @@
-import { Button } from 'antd-mobile';
-
-export default function() {
-  return (
-    <div>
-      <h1>Index Page</h1>
-    </div>
-  );
-}

+ 7 - 7
src/routes/PrivateRoute.js

@@ -1,7 +1,7 @@
-export default (props) => {
-    return (
-      <div>
-        { props.children }
-      </div>
-    );
-  }
+// export default (props) => {
+//     return (
+//       <div>
+//         { props.children }
+//       </div>
+//     );
+//   }