diff --git a/ecosystem.config.js b/ecosystem.config.js
index 9098a42..a438966 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -1,7 +1,7 @@
module.exports = {
apps: [
{
- name: 'suodee',
+ name: 'truck',
exec_mode: 'cluster',
instances: '1', // Or a number of instances
script: './node_modules/nuxt/bin/nuxt.js',
diff --git a/env.js b/env.js
index e4084bb..66f106c 100644
--- a/env.js
+++ b/env.js
@@ -8,8 +8,8 @@ module.exports = {
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
dev: {
MODE: 'dev',
- // VUE_APP_API_URL: 'http://122.51.230.86:8099/',
- VUE_APP_API_URL: 'http://localhost:8099/',
+ VUE_APP_API_URL: 'http://114.132.197.85:8099/',
+ // VUE_APP_API_URL: 'http://localhost:8099/',
VUE_APP_WEBSOCKET: 'ws://localhost:8099/ws/asset/'
},
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
diff --git a/node_modules.zip b/node_modules.zip
new file mode 100644
index 0000000..1c55515
Binary files /dev/null and b/node_modules.zip differ
diff --git a/nuxt.config.js b/nuxt.config.js
index e9ce42a..6e99010 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -80,7 +80,7 @@ export default {
icons: false
},
sitemap: {
- hostname: 'http://122.51.230.86:8099',
+ hostname: 'http://www.lighting-it.cn',
sitemaps: [
{
path: '/sitemap.xml',
@@ -89,6 +89,7 @@ export default {
'/products.xml',
'/inquiry.xml',
'/article-page.xml',
+ '/separate.xml'
],
gzip: true
},
@@ -99,17 +100,59 @@ export default {
{
path: '/products.xml',
routes: async () => {
- const { data: res} = await axios.get('http://122.51.230.86:8099/web/prodPageList?pageNum=1&pageSize=9&catgId=43bb1e22091c0f674453c8db7e89b4a3&tenantId=main')
- return res.data.records.map(item => {
+ const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=cp&tenantId=main')
+ return res.data.map(item => {
return {
- url: `/products/${item.id}`,
+ url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
changefreq: 'daily',
priority: 1
}
})
},
gzip: true
- }
+ },
+ {
+ path: '/inquiry.xml',
+ routes: async () => {
+ const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=xp&tenantId=main')
+ return res.data.map(item => {
+ return {
+ url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
+ changefreq: 'daily',
+ priority: 1
+ }
+ })
+ },
+ gzip: true
+ },
+ {
+ path: '/article-page.xml',
+ routes: async () => {
+ const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=wz&tenantId=main')
+ return res.data.map(item => {
+ return {
+ url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
+ changefreq: 'daily',
+ priority: 1
+ }
+ })
+ },
+ gzip: true
+ },
+ {
+ path: '/inquiry.xml',
+ routes: async () => {
+ const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=dym&tenantId=main')
+ return res.data.map(item => {
+ return {
+ url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
+ changefreq: 'daily',
+ priority: 1
+ }
+ })
+ },
+ gzip: true
+ },
]
},
router: {
@@ -169,7 +212,7 @@ export default {
host: '0.0.0.0', // default: localhost
proxy: {
'/dev': {
- target: 'http://192.168.1.17:8099/',
+ target: 'http://114.132.197.85:8099/',
pathRewrite: { '^/dev': '' },
changeOrigin: true,
}
diff --git a/pages/article-page/index.vue b/pages/article-page/index.vue
index 1bbffea..5e3f072 100644
--- a/pages/article-page/index.vue
+++ b/pages/article-page/index.vue
@@ -3,7 +3,7 @@