diff --git a/public/config.json b/public/config.json deleted file mode 100644 index 99c9299..0000000 --- a/public/config.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title":"智慧观碳系统", - "baseUrl": "http://111.198.10.15:11411", - "DataVUrl":[ - { - "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6482e0dc0987c/" - }, - { - "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/64867996e5a73/" - }, - { - "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/64867d25bd589/" - } - ] - -} diff --git a/public/config.json b/public/config.json deleted file mode 100644 index 99c9299..0000000 --- a/public/config.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title":"智慧观碳系统", - "baseUrl": "http://111.198.10.15:11411", - "DataVUrl":[ - { - "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6482e0dc0987c/" - }, - { - "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/64867996e5a73/" - }, - { - "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/64867d25bd589/" - } - ] - -} diff --git a/public/config/config.json b/public/config/config.json new file mode 100644 index 0000000..99c9299 --- /dev/null +++ b/public/config/config.json @@ -0,0 +1,19 @@ +{ + "title":"智慧观碳系统", + "baseUrl": "http://111.198.10.15:11411", + "DataVUrl":[ + { + "name": "碳足迹监测", + "url": "https://share.shanhaibi.com/6482e0dc0987c/" + }, + { + "name": "碳足迹评价", + "url": "https://share.shanhaibi.com/64867996e5a73/" + }, + { + "name": "碳足迹预警", + "url": "https://share.shanhaibi.com/64867d25bd589/" + } + ] + +} diff --git a/public/config.json b/public/config.json deleted file mode 100644 index 99c9299..0000000 --- a/public/config.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "title":"智慧观碳系统", - "baseUrl": "http://111.198.10.15:11411", - "DataVUrl":[ - { - "name": "碳足迹监测", - "url": "https://share.shanhaibi.com/6482e0dc0987c/" - }, - { - "name": "碳足迹评价", - "url": "https://share.shanhaibi.com/64867996e5a73/" - }, - { - "name": "碳足迹预警", - "url": "https://share.shanhaibi.com/64867d25bd589/" - } - ] - -} diff --git a/public/config/config.json b/public/config/config.json new file mode 100644 index 0000000..99c9299 --- /dev/null +++ b/public/config/config.json @@ -0,0 +1,19 @@ +{ + "title":"智慧观碳系统", + "baseUrl": "http://111.198.10.15:11411", + "DataVUrl":[ + { + "name": "碳足迹监测", + "url": "https://share.shanhaibi.com/6482e0dc0987c/" + }, + { + "name": "碳足迹评价", + "url": "https://share.shanhaibi.com/64867996e5a73/" + }, + { + "name": "碳足迹预警", + "url": "https://share.shanhaibi.com/64867d25bd589/" + } + ] + +} diff --git a/src/main.ts b/src/main.ts index b917f84..ce098a9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,7 +32,7 @@ app.component(key, component) } directive(app) -axios.get('/config.json').then((result) => { +axios.get('./config/config.json').then((result) => { console.log('get config') console.log(result) request.defaults.baseURL = result.data.baseUrl // 设置默认请求网址