diff --git a/src/permission.ts b/src/permission.ts
index c13c976..369452d 100644
--- a/src/permission.ts
+++ b/src/permission.ts
@@ -9,35 +9,36 @@ NProgress.configure({ showSpinner: false }); // 进度条
const permissionStore = usePermissionStoreHook();
// 白名单路由
-const whiteList = ["/login", "/signSucceed",'/createVideo','/moveImg'];
+const whiteList = ["/login", "/signSucceed", "/createVideo", "/moveImg"];
router.beforeEach(async (to, from, next) => {
NProgress.start();
const AccessToken = localStorage.getItem("AccessToken");
+ next();
// 已登录
- if (AccessToken) {
- // 重置密码时可以去往login页面
- if ((to.params.type as string) == "4") {
- next();
- }
- if (to.query.resetPwd) {
- next();
- }
- if (to.path === "/login") {
- next({ path: "/createVideo" });
- } else {
- next();
- }
- // 未登录
- } else {
- // 未登录可以访问白名单页面
- if (whiteList.indexOf(to.path) !== -1) {
- next();
- } else {
- // 不在白名单内,跳转登录页
- next({ path: "/login" });
- }
- }
+ // if (AccessToken) {
+ // // 重置密码时可以去往login页面
+ // if ((to.params.type as string) == "4") {
+ // next();
+ // }
+ // if (to.query.resetPwd) {
+ // next();
+ // }
+ // if (to.path === "/login") {
+ // next({ path: "/createVideo" });
+ // } else {
+ // next();
+ // }
+ // // 未登录
+ // } else {
+ // // 未登录可以访问白名单页面
+ // if (whiteList.indexOf(to.path) !== -1) {
+ // next();
+ // } else {
+ // // 不在白名单内,跳转登录页
+ // next({ path: "/login" });
+ // }
+ // }
});
router.afterEach(() => {
diff --git a/src/router/index.ts b/src/router/index.ts
index 9598aa7..4f168d0 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -5,13 +5,12 @@ export const Layout = () => import("@/layout/index.vue");
// 静态路由
export const constantRoutes: RouteRecordRaw[] = [
-
// 登录
{
path: "/login",
component: () => import("@/views/login/index.vue"),
meta: { hidden: true },
- name:'login'
+ name: "login",
},
{
path: "/signSucceed",
@@ -55,7 +54,8 @@ export const constantRoutes: RouteRecordRaw[] = [
},
},
],
- }, {
+ },
+ {
path: "/",
component: Layout,
redirect: "/myStore",
@@ -72,7 +72,8 @@ export const constantRoutes: RouteRecordRaw[] = [
},
},
],
- }, {
+ },
+ {
path: "/",
component: Layout,
redirect: "/myAPI",
@@ -108,7 +109,24 @@ export const constantRoutes: RouteRecordRaw[] = [
},
],
},
-
+ {
+ path: "/",
+ component: Layout,
+ redirect: "/model",
+ children: [
+ {
+ path: "model",
+ component: () => import("@/views/mangage/model.vue"),
+ name: "model",
+ meta: {
+ title: "model",
+ icon: "homepage",
+ affix: true,
+ name: "modelMangage.title",
+ },
+ },
+ ],
+ },
];
/**
diff --git a/src/views/mangage/model.vue b/src/views/mangage/model.vue
new file mode 100644
index 0000000..73dd3b3
--- /dev/null
+++ b/src/views/mangage/model.vue
@@ -0,0 +1,1992 @@
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+ <
+
+
+
{{ $t("createVideo.sex") }}
+
+
+ {{ $t("createVideo.all") }}
+
+
+ {{ $t("createVideo.male") }}
+
+
+ {{ $t("createVideo.female") }}
+
+
+
{{ $t("createVideo.videoRatio") }}
+
+
+ {{ $t("createVideo.all") }}
+
+
+ {{ $t("createVideo.landscape") }}
+
+
+ {{ $t("createVideo.portrait") }}
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t("createVideo.abscissa") }}
+
+
+
+
{{ $t("createVideo.ordinate") }}
+
+
+
+
{{ $t("createVideo.hierarchy") }}
+
+
+
+
{{ $t("createVideo.ratio") }}
+
+
+
+
+
+
+
+
+
+ {{ $t("createVideo.saveVideo") }}
+
+
+
+
+
+ {{ $t("createVideo.generateVideo") }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t("createVideo.copywriting") }}
+
+
+ {{ $t("createVideo.BackgroundImage") }}
+
+
+ {{ $t("createVideo.material") }}
+
+
+ {{ $t("createVideo.subtitles") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 🕗
+
+
+ {{ $t("createVideo.entered") }} {{ textareaContent.length }} /
+ 1000
+
+
{{ $t("createVideo.languages") }}
+
+
+
+
+ {{
+ lanChange == "zh-cn" ? item.chineseName : item.name
+ }}
+
+
+
{{ $t("createVideo.voices") }}
+
+
+
+
+
{{ $t("createVideo.styles") }}
+
+
+
+
+ {{ lanChange == "zh-cn" ? item.name : item.engName }}
+ 🔊
+
+
+
+
+
+
+
+
+ {{ $t("createVideo.systemBGI") }}
+
+
+ {{ $t("createVideo.personBGI") }}
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+ {{ $t("createVideo.systemMaterial") }}
+
+
+ {{ $t("createVideo.personMaterial") }}
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
{{ $t("createVideo.subtitlesSwitch") }}
+
+
+
+
+
+
+
+ {{ lanChange == "zh-cn" ? `字体` : `Font Family` }}
+
+
+
+
+
+
+
+
+
+
+ {{ lanChange == "zh-cn" ? `纵坐标` : `Y-axis` }}
+
+
+
+
+
+
+
+
+ {{ lanChange == "zh-cn" ? `字号大小` : `Font Size` }}
+
+
+
+ {{
+ item
+ }}
+
+
+
+
+
+
+
+
+ {{ lanChange == "zh-cn" ? `字体颜色` : `Font Color` }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+