Русифицировать README и интерфейс HY2XS admin
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
|
||||
export const Layout = () => import("@/layout/index.vue");
|
||||
|
||||
// 静态路由
|
||||
// Статические маршруты
|
||||
export const constantRoutes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/redirect",
|
||||
@@ -183,17 +183,17 @@ export const asyncRoutes: any[] = [
|
||||
];
|
||||
|
||||
/**
|
||||
* 创建路由
|
||||
* Создание маршрутизатора
|
||||
*/
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes: constantRoutes as RouteRecordRaw[],
|
||||
// 刷新时,滚动条位置还原
|
||||
// Восстановление позиции прокрутки при обновлении
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
});
|
||||
|
||||
/**
|
||||
* 重置路由
|
||||
* Сброс маршрутов
|
||||
*/
|
||||
export function resetRouter() {
|
||||
router.replace({ path: "/login" });
|
||||
@@ -201,3 +201,5 @@ export function resetRouter() {
|
||||
}
|
||||
|
||||
export default router;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user