From ccc0c47c8a819e39db31a784ff16fdf61418580b Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 23 九月 2024 15:52:47 +0800
Subject: [PATCH] 1
---
src/views/login/components/passwordForm.vue | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue
index 7881276..905acac 100644
--- a/src/views/login/components/passwordForm.vue
+++ b/src/views/login/components/passwordForm.vue
@@ -22,11 +22,11 @@
export default {
data() {
return {
- socket: null,
+ socket: null,
userType: 'admin',
form: {
- user: "admin",
- password: "123456",
+ user: "",
+ password: "",
autologin: false
},
rules: {
@@ -54,7 +54,7 @@
mounted() {
//this.$HTTP.get('/api/blade-sync/outer-app-config/appStatus')
},
- methods: {
+ methods: {
async login() {
var validate = await this.$refs.loginForm.validate().catch(() => { })
if (!validate) { return false }
@@ -89,7 +89,7 @@
});
}
})
- if(!isToken) return;
+ if (!isToken) return;
//鑾峰彇鑿滃崟
await this.$HTTP.get("/api/blade-system/menu/routes?" + this.$TOOL.qsStringify({ "appCode": "CPS" })).then(res => {
if (res.data.length == 0) {
@@ -114,16 +114,14 @@
// 濡傛灉娌℃湁 children 灞炴�э紝璇存槑鏄渶鍚庝竴绾э紝娣诲姞 component 瀵硅薄
var len = clonedItem.path.length;
if (item.name == "浠诲姟璋冨害") {
- //clonedItem.component = clonedItem.path; //鏈塩omponent涓嶅彲浠ヤ娇鐢╥frame
+ clonedItem.origin = item.path;
+ clonedItem.component = "myiframe/urlPath"; //鏈塩omponent涓嶅彲浠ヤ娇鐢╥frame
+ clonedItem.path = "/myiframe/urlPath";
} else {
clonedItem.component = clonedItem.path.substring(1, len);
}
}
- if (item.name == "浠诲姟璋冨害") {
- clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "iframe" }
- } else {
- clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" }
- }
+ clonedItem.meta = { title: clonedItem.name, icon: "el-icon-takeaway-box", type: "menu" }
return clonedItem;
});
}
@@ -146,7 +144,7 @@
permissions: ["list.add", "list.edit", "list.delete", "user.add", "user.edit", "user.delete"]
}
this.$TOOL.data.set("MENU", obj.menu);
- console.log(obj.menu,'menu')
+ console.log(obj.menu, 'menu')
this.$TOOL.data.set("PERMISSIONS", obj.permissions)
this.$TOOL.data.set("DASHBOARDGRID", obj.dashboardGrid)
--
Gitblit v1.9.3