dujingxian 4 роки тому
батько
коміт
baffb4c841
3 змінених файлів з 9 додано та 10 видалено
  1. 0 7
      src/api/index.js
  2. 7 2
      src/pages/index.vue
  3. 2 1
      src/router/index.js

+ 0 - 7
src/api/index.js

@@ -116,13 +116,6 @@ export const testRequest = () => {
 export const login = (params) => {
     console.log(`${Prefix}act=merchant_login&op=login`)
     return requestLoading(`${Prefix}act=merchant_login&op=login&client_type=ajax`, 'post', params)
-    // return axios({
-    //     url: `${Prefix}act=merchant_login&op=login&client_type=ajax`,
-    //     method: 'post',
-    //     data: params,
-    //     withCredentials: true,
-    //     timeout: 120000
-    // })
 }
 
 //登出

+ 7 - 2
src/pages/index.vue

@@ -4,7 +4,12 @@
         <el-row type="flex" style="height:100%;" justify="space-between" align="middle">
             <div style="color:#fff">
                 <span>椰子后台管理系统</span>
-                <i class="el-icon-s-home" style="margin-left:100px" @click="$router.push('/')"></i>
+                <i class="el-icon-s-home" style="margin-left:120px" @click="$router.push('/')"></i>
+                <!-- 下载文档地址 -->
+                <!-- <a href="http://jiayouka.5800cc.com/manual.docx" download="test.docx" style="margin-left:30px;font-size: 14px;color:#fff;text-decoration:none">
+                    <i class="el-icon-document"></i>
+                    API文档
+                </a> -->
             </div>
             <div>
                 <el-dropdown @command="onUserEdit">
@@ -49,7 +54,7 @@
                     <span slot="title">充值</span>
                 </el-menu-item>
                 <el-menu-item index="order" route="order">
-                    <i class="el-icon-document"></i>
+                    <i class="el-icon-edit-outline"></i>
                     <span slot="title">订单统计</span>
                 </el-menu-item>
                 <el-menu-item index="message" route="message">

+ 2 - 1
src/router/index.js

@@ -69,7 +69,8 @@ Vue.use(VueRouter)
 ]
 
 const router = new VueRouter({
-  routes
+  routes,
+  mode: 'history'
 })
 
 router.beforeEach((to,from,next)=>{