need fix rout spa and set api on URL
This commit is contained in:
@@ -5,6 +5,7 @@ FROM node:lts-alpine as builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm install axios
|
||||
|
||||
# Копируем исходный код
|
||||
COPY . .
|
||||
|
||||
@@ -1,20 +1,21 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import SignUpView from '../views/SingUpV.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/signup',
|
||||
name: 'signup',
|
||||
component: SignUpView,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView,
|
||||
},
|
||||
{
|
||||
path: '/signin',
|
||||
name: 'signin',
|
||||
component: SingIn,
|
||||
}
|
||||
],
|
||||
})
|
||||
});
|
||||
|
||||
export default router
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<script setup>
|
||||
import Header from '../components/Header.vue'
|
||||
import Footer from '../components/Footer.vue'
|
||||
import SignUpC from '../components/SignUpC.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Header />
|
||||
<SignUpC />
|
||||
<Footer />
|
||||
</template>
|
||||
Reference in New Issue
Block a user