Skip to content

Commit

Permalink
try hash mode routing
Browse files Browse the repository at this point in the history
  • Loading branch information
DanZalov committed Mar 10, 2024
1 parent 954ed51 commit f84dd00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/TaskForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function escHandler() {
required
/>
<button type="submit" class="mybtn" :class="isNew ? 'primary' : 'green'" @click="submitForm">
{{ isNew ? 'Добавить' : 'Обновить' }}
{{ isNew ? 'Добавить' : 'Сохранить' }}
</button>
</div>
</template>
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
Expand Down

0 comments on commit f84dd00

Please sign in to comment.