fix: 放开产品页面

This commit is contained in:
Gsh
2025-06-23 23:36:59 +08:00
parent a46eb176d7
commit 04c2b246f6
8 changed files with 13 additions and 11 deletions

View File

@@ -11,10 +11,11 @@ VITE_WEB_ENV = 'development'
VITE_WEB_BASE_API = '/dev-api' VITE_WEB_BASE_API = '/dev-api'
# 本地接口 # 本地接口
VITE_API_URL = http://localhost:19001/api/app # VITE_API_URL = http://localhost:19001/api/app
#VITE_API_URL = http://ccnetcore.com:19001/api/app VITE_API_URL=http://ccnetcore.com:19001/api/app
# SSO单点登录url # SSO单点登录url
SSO_SEVER_URL='http://localhost:18001' # SSO_SEVER_URL='http://localhost:18001'
SSO_SEVER_URL='http://ccnetcore.com'
# SSO单点登录项目标识 # SSO单点登录项目标识
SSO_CLIENT_ID='YiXin-Ai'; SSO_CLIENT_ID='YiXin-Ai';

View File

@@ -12,4 +12,4 @@ export const COLLAPSE_THRESHOLD: number = 600;
export const SIDE_BAR_WIDTH: number = 280; export const SIDE_BAR_WIDTH: number = 280;
// 路由白名单地址[本地存在的路由 staticRouter.ts 中] // 路由白名单地址[本地存在的路由 staticRouter.ts 中]
export const ROUTER_WHITE_LIST: string[] = ['/chat', '/chat/not_login', '/product', '/403', '/404']; export const ROUTER_WHITE_LIST: string[] = ['/chat', '/chat/not_login', '/products', '/403', '/404'];

View File

@@ -1,4 +1,4 @@
// 三方登录 // 三方登录
// export const SSO_SEVER_URL: string = 'https://ccnetcore.com'; // export const SSO_SEVER_URL: string = 'https://ccnetcore.com';
export const SSO_SEVER_URL: string = import.meta.env.SSO_SEVER_URL || 'http://localhost:18001'; export const SSO_SEVER_URL: string = import.meta.env.SSO_SEVER_URL || 'http://ccnetcore.com';
export const SSO_CLIENT_ID: string = import.meta.env.SSO_CLIENT_ID || 'YiXin-Ai'; export const SSO_CLIENT_ID: string = import.meta.env.SSO_CLIENT_ID || 'YiXin-Ai';

View File

@@ -34,7 +34,7 @@ export const layoutRouter: RouteRecordRaw[] = [
{ {
path: '/products', path: '/products',
name: 'products', name: 'products',
component: () => import('@/pages/product/index.vue'), component: () => import('@/pages/products/index.vue'),
meta: { meta: {
title: '产品页面', title: '产品页面',
keepAlive: true, // 如果需要缓存 keepAlive: true, // 如果需要缓存

View File

@@ -6,7 +6,8 @@ interface ImportMetaEnv {
readonly VITE_WEB_ENV: string; readonly VITE_WEB_ENV: string;
readonly VITE_WEB_BASE_API: string; readonly VITE_WEB_BASE_API: string;
readonly VITE_API_URL: string; readonly VITE_API_URL: string;
readonly VITE_BUILD_COMPRESS: string; readonly SSO_SEVER_URL: string;
readonly SSO_CLIENT_ID: string;
} }
declare interface ImportMeta { declare interface ImportMeta {

View File

@@ -2063,8 +2063,8 @@ export const IconJson = {
"printer-cloud-line", "printer-cloud-line",
"printer-fill", "printer-fill",
"printer-line", "printer-line",
"product-hunt-fill", "products-hunt-fill",
"product-hunt-line", "products-hunt-line",
"profile-fill", "profile-fill",
"profile-line", "profile-line",
"prohibited-fill", "prohibited-fill",

View File

@@ -24,10 +24,10 @@ const props = defineProps({
} }
}); });
const emit = defineEmits(["manage-product", "delete-item"]); const emit = defineEmits(["manage-products", "delete-item"]);
const handleClickManage = (product: CardProductType) => { const handleClickManage = (product: CardProductType) => {
emit("manage-product", product); emit("manage-products", product);
}; };
const handleClickDelete = (product: CardProductType) => { const handleClickDelete = (product: CardProductType) => {