remove web hash mode
parent
5acd2aee65
commit
aadbbb202d
|
@ -0,0 +1,8 @@
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /primevue/
|
||||||
|
RewriteRule ^primevue/index\.php$ - [L]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule . /primevue/index.php [L]
|
||||||
|
</IfModule>
|
|
@ -1,6 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<base href="<%= BASE_URL %>">
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93461466-1"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-93461466-1"></script>
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {createRouter, createWebHashHistory} from 'vue-router'
|
import {createRouter, createWebHistory} from 'vue-router';
|
||||||
import Home from '../Home.vue';
|
import Home from '../Home.vue';
|
||||||
import App from '../App.vue';
|
import App from '../App.vue';
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ const routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHistory(process.env.BASE_URL),
|
||||||
routes,
|
routes,
|
||||||
scrollBehavior (to, from, savedPosition) {
|
scrollBehavior (to, from, savedPosition) {
|
||||||
if (savedPosition)
|
if (savedPosition)
|
||||||
|
|
Loading…
Reference in New Issue