-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e35fa8b
commit 33202c9
Showing
12 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { forOwn } from 'lodash-es'; | ||
const modules = import.meta.glob('./*.json', { eager: true, import: 'default' }); | ||
const langs = {} as Record<string, string>; | ||
forOwn(modules, (value) => { | ||
Object.assign(langs, value); | ||
}); | ||
export default langs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"首页": "Index", | ||
"示例": "Example", | ||
"权限": "Permission", | ||
"组件语言包": "Component Language Pack", | ||
"请求示例": "Request Example", | ||
"页面权限": "Page Permission", | ||
"多级菜单": "Multilevel Menu", | ||
"多级菜单1": "Multilevel Menu 1", | ||
"多级菜单1-1": "Multilevel Menu 1-1", | ||
"多级菜单1-1-1": "Multilevel Menu 1-1-1", | ||
"多级菜单1-2": "Multilevel Menu 1-2" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { forOwn } from 'lodash-es'; | ||
const modules = import.meta.glob('./*.json', { eager: true, import: 'default' }); | ||
const langs = {} as Record<string, string>; | ||
forOwn(modules, (value) => { | ||
Object.assign(langs, value); | ||
}); | ||
export default langs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { RouteRecordRaw } from 'vue-router'; | ||
export const routes: RouteRecordRaw[] = [ | ||
{ | ||
path: 'pagePermission', | ||
component: async () => await import('@/views/example/pagePermission.vue'), | ||
meta: { title: '页面权限', rule: ['edit'] }, | ||
}, | ||
]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template>当前页面 admin/editor可见</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters