feat: 跳过CRMEB Pro系统授权限制

- 后端 Common.php: check_auth/auth/crmeb_copyright 直接返回成功,绕过加密 BaseController
- 前端 index/index.vue: 移除 checkAuth 调用,设置 auth cookie 避免授权校验

Made-with: Cursor
This commit is contained in:
apple
2026-03-17 16:11:05 +08:00
parent f0afafb689
commit 5287218de9
2 changed files with 14 additions and 73 deletions

View File

@@ -23,9 +23,6 @@ import visitChart from "./components/visitChart";
import userChart from "./components/userChart";
import hotSearch from "./hot-search";
import userPreference from "./user-preference";
import { checkAuth } from "@/api/index";
import { auth } from "@/api/system";
import { Notice } from "iview";
import util from "@/libs/util";
export default {
@@ -35,8 +32,6 @@ export default {
gridMenu,
visitChart,
userChart,
hotSearch,
userPreference,
},
data() {
return {
@@ -46,26 +41,9 @@ export default {
};
},
mounted() {
if (!util.cookies.get("auth")) {
checkAuth()
.then((res) => {})
.catch((res) => {});
}
this.getAuth();
util.cookies.set("auth", "1");
},
methods: {
getAuth() {
auth()
.then((res) => {
let data = res.data || {};
if (data.auth_code && data.auth) {
this.authCode = data.auth_code;
this.auth = true;
}
this.openImage = true;
})
.catch((res) => {});
},
clear() {
this.openImage = false;
},