diff --git a/.env.production b/.env.production
index fef0d7a..f026fe4 100644
--- a/.env.production
+++ b/.env.production
@@ -1,11 +1,10 @@
ENV = 'production'
-VITE_APP_API_BASEURL = https://opsscmapi.f2b211.com/api/ #请求地址
-
-
+VITE_APP_API_BASEURL =https://ow.f2b211.com/admapi/v1
+#前端回显图片之类的地址
# 线上环境
VITE_USER_NODE_ENV = production
#前端回显图片之类的地址
-VITE_APP_API_BASE_UPLOAD_URL =https://dev.ow.f2b211.com/
+VITE_APP_API_BASE_UPLOAD_URL =https://ow.f2b211.com/
# 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔
# Optional: gzip | brotli | none
diff --git a/dist.zip b/dist.zip
new file mode 100644
index 0000000..167a9cd
Binary files /dev/null and b/dist.zip differ
diff --git a/src/views/articleManagement/class/index.vue b/src/views/articleManagement/class/index.vue
index 7368f68..62d1e94 100644
--- a/src/views/articleManagement/class/index.vue
+++ b/src/views/articleManagement/class/index.vue
@@ -6,13 +6,7 @@
-
+
diff --git a/src/views/bannerManagement/list/index.vue b/src/views/bannerManagement/list/index.vue
index 84bb6c5..67d7bf6 100644
--- a/src/views/bannerManagement/list/index.vue
+++ b/src/views/bannerManagement/list/index.vue
@@ -189,10 +189,10 @@ const getSystemUrls = async (node: any, resolve: any) => {
}
} else {
//第二次请求
- if (node.data.children) {
- resolve(node.data.children);
+ if (node?.data?.children) {
+ resolve(node?.data?.children);
}
- if (!node.data.children.length && !node.data.url && node.level > 1) {
+ if (!node?.data?.children?.length && !node?.data?.url && node?.level > 1) {
const [link_to, id] = node?.data?.value?.split("/");
const result = await getSystemUrlsApi({ link_to, id });
if (result?.code === 0) {
@@ -222,29 +222,29 @@ const getBannerRead = async (id: any) => {
dataStore.visible = true;
const result = await getBannerReadApi(id);
if (result?.code === 0) {
- dataStore.editRuleForm = result?.data;
- // setImgOrVideo(result);
- await setImgOrVideo(result);
- dataStore.editRuleForm = await result?.data;
+ setImgOrVideo(result);
getProductCategoryList();
-
- if (dataStore.editRuleForm.link && dataStore.editRuleForm.link_to) {
- let { id, name, link } = dataStore.editRuleForm.link_echo_data;
- if (!id || !name || !link) {
- return;
+ nextTick(() => {
+ dataStore.editRuleForm = result?.data;
+ if (dataStore.editRuleForm.link && dataStore.editRuleForm.link_to) {
+ let { id, name, link } = dataStore.editRuleForm.link_echo_data;
+ if (!id || !name || !link) {
+ return;
+ }
+ console.log("1232323");
+ let obj: any = {
+ label: name, // 确保这里的name是你想要显示的文本
+ value: `${dataStore.editRuleForm.link_to}` + "/" + `${id}` + "/" + `${name}`,
+ url: link,
+ link_to: dataStore.editRuleForm.link_to,
+ children: []
+ };
+ let data: any = [];
+ data.push(obj);
+ selectedNodes.value = obj.value;
+ dataStore.data = data;
}
- let obj: any = {
- label: name, // 确保这里的name是你想要显示的文本
- value: `${dataStore.editRuleForm.link_to}` + "/" + `${id}` + "/" + `${name}`,
- url: link,
- link_to: dataStore.editRuleForm.link_to,
- children: []
- };
- let data: any = [];
- data.push(obj);
- selectedNodes.value = obj.value;
- dataStore.data = data;
- }
+ });
}
};
const handleCheck = (checkedNodes: any, values: any) => {
@@ -335,7 +335,6 @@ const resetFields = () => {
// 抽屉重置
const handleResetClick = () => {
if (dataStore.title === "添加Banner") {
- console.log("12323");
resetFields();
} else {
getBannerRead(dataStore.editRuleForm.id);
diff --git a/src/views/downloadManagement/class/index.vue b/src/views/downloadManagement/class/index.vue
index ac5ab8c..f0c64d6 100644
--- a/src/views/downloadManagement/class/index.vue
+++ b/src/views/downloadManagement/class/index.vue
@@ -7,13 +7,7 @@
-
+
diff --git a/src/views/productManagement/classList/index.vue b/src/views/productManagement/classList/index.vue
index b5b9e40..a0dd592 100644
--- a/src/views/productManagement/classList/index.vue
+++ b/src/views/productManagement/classList/index.vue
@@ -8,13 +8,8 @@
:formData="dataStore.searchFormData"
:search-param="dataStore.searchParam"
/>
-
+
+
@@ -154,7 +149,6 @@ const getArticleCategorySave = async (params: any) => {
};
const handleSelectChangeEmits = (value: any) => {
- console.log(value, "===============value1111111============");
if (value.prop === "pid") {
dataStore.ruleForm.pid = value.id;
}