Compare commits
No commits in common. "master" and "1.3.9" have entirely different histories.
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wkitd",
|
"name": "wkitd",
|
||||||
"version": "1.3.10",
|
"version": "1.3.9",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -107,7 +107,6 @@ class RouterLink extends Component {
|
||||||
a {
|
a {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
gap: var(--router-link-gap, 0);
|
gap: var(--router-link-gap, 0);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
@ -106,10 +106,6 @@ class Router {
|
||||||
;[path, query] = path.split('?')
|
;[path, query] = path.split('?')
|
||||||
}
|
}
|
||||||
path = path.replace(PREFIX_REGEXP, '/')
|
path = path.replace(PREFIX_REGEXP, '/')
|
||||||
// 修正默认主页,以支持带路径访问的首页
|
|
||||||
if (path === '/index.html') {
|
|
||||||
path = '/'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$view || path === this.#route.path) {
|
if (!$view || path === this.#route.path) {
|
||||||
// query不同, 只更新query
|
// query不同, 只更新query
|
||||||
|
|
Loading…
Reference in New Issue