前端构建
This commit is contained in:
parent
b4482da0f0
commit
0d38a27fd2
File diff suppressed because one or more lines are too long
81
public/build/assets/app.7c2f338c.js
Normal file
81
public/build/assets/app.7c2f338c.js
Normal file
File diff suppressed because one or more lines are too long
@ -8,7 +8,7 @@
|
|||||||
"src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff"
|
"src": "node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff"
|
||||||
},
|
},
|
||||||
"resources/js/app.js": {
|
"resources/js/app.js": {
|
||||||
"file": "assets/app.03eb1395.js",
|
"file": "assets/app.7c2f338c.js",
|
||||||
"src": "resources/js/app.js",
|
"src": "resources/js/app.js",
|
||||||
"isEntry": true,
|
"isEntry": true,
|
||||||
"css": [
|
"css": [
|
||||||
|
11
resources/js/bootstrap.js
vendored
11
resources/js/bootstrap.js
vendored
@ -40,3 +40,14 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
|||||||
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
||||||
// enabledTransports: ['ws', 'wss'],
|
// enabledTransports: ['ws', 'wss'],
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
// 根据 URL 自动激活导航栏
|
||||||
|
const navLinks = document.querySelectorAll('#nav .nav-link, #nav .dropdown-item');
|
||||||
|
const currentUrl = window.location.href;
|
||||||
|
|
||||||
|
for (let i = 0; i < navLinks.length; i++) {
|
||||||
|
const navLink = navLinks[i];
|
||||||
|
if (currentUrl === navLink.href) {
|
||||||
|
navLink.classList.add('active');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user