zhaohuanhuan 1 жил өмнө
parent
commit
06e8540bf8

+ 6 - 6
src/router/index.ts

@@ -1,18 +1,18 @@
 // src/router/index.ts
 import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
 const routes: RouteRecordRaw[] = [
-  // {
-  //   path: '/',
-  //   name: 'Login',
-  //   component: () => import('@/views/test.vue')
-  // },
+  {
+    path: '/',
+    name: 'Index',
+    component: () => import('@/views/index.vue')
+  },
   {
     path: '/login',
     name: 'Login',
     component: () => import('@/views/login/login.vue')
   },
   {
-    path: '/',
+    path: '/picking',
     name: 'PickingList',
     component: () => import('@/views/outbound/picking/list/index.vue')
   },

+ 16 - 0
src/views/index.vue

@@ -0,0 +1,16 @@
+<template>
+  <div class="container">
+    <van-image class="image" :src="imageUrl" ></van-image>
+    <div>欢迎进入</div>
+  </div>
+
+</template>
+<script setup>
+import imageUrl from '@/assets/img.png'
+</script>
+<style scoped lang="sass" >
+.container
+  height: 100vh
+  .image
+    margin: 20px
+</style>

+ 1 - 1
src/views/login/login.vue

@@ -23,7 +23,7 @@ const onConfirm = async () => {
   const { data } = await login(params)
   data.warehouse='WH01'
   store.setToken(data)
-  router.push('/')
+  router.push('/picking')
 }
 
 </script>

+ 1 - 1
src/views/outbound/picking/task/index.vue

@@ -269,7 +269,7 @@ const createPicking = () => {
     count: counts,
   };
   createPickingTask(params).then(data => {
-    router.push('/')
+    router.push('/picking')
     loadData()
   })
 };