fix: 放开产品页面
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
@@ -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'];
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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, // 如果需要缓存
|
||||||
|
|||||||
3
Yi.Ai.Vue3/types/import_meta.d.ts
vendored
3
Yi.Ai.Vue3/types/import_meta.d.ts
vendored
@@ -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 {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user