changes
This commit is contained in:
2
build.sh
2
build.sh
@@ -1,5 +1,5 @@
|
|||||||
python3 envprod.py
|
python3 envprod.py
|
||||||
PROJECT="utopia"
|
PROJECT="bigdatacloud"
|
||||||
IMAGE="system"
|
IMAGE="system"
|
||||||
|
|
||||||
docker build -t docker.bigdatatech.vn/$PROJECT/$IMAGE:latest .
|
docker build -t docker.bigdatatech.vn/$PROJECT/$IMAGE:latest .
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import axios from 'axios'
|
|||||||
|
|
||||||
export default defineNuxtPlugin(() => {
|
export default defineNuxtPlugin(() => {
|
||||||
const module = 'system'
|
const module = 'system'
|
||||||
const mode = 'dev'
|
const mode = 'prod'
|
||||||
const paths = [
|
const paths = [
|
||||||
{ name: "dev", url: "https://dev.api.utopia.com.vn/" },
|
{ name: "dev", url: "https://api.bigdatatech.cloud/" },
|
||||||
{ name: "local", url: "http://localhost:8000/" },
|
{ name: "local", url: "http://localhost:8000/" },
|
||||||
{ name: "prod", url: "https://api.utopia.com.vn/" },
|
{ name: "prod", url: "https://api.bigdatatech.cloud/" },
|
||||||
];
|
];
|
||||||
const path = paths.find(v=>v.name===mode).url
|
const path = paths.find(v=>v.name===mode).url
|
||||||
const apis = [
|
const apis = [
|
||||||
@@ -141,7 +141,7 @@ export default defineNuxtPlugin(() => {
|
|||||||
|
|
||||||
const requestLogin = function() {
|
const requestLogin = function() {
|
||||||
store.commit('login', undefined)
|
store.commit('login', undefined)
|
||||||
window.location.href = `https://${mode==='dev'? 'dev.' : ''}login.utopia.com.vn/signin?module=${module}&link=${window.location.origin}`
|
window.location.href = `https://${mode==='dev'? '' : ''}login.bigdatatech.cloud/signin?module=${module}&link=${window.location.origin}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user