提交 458058e3 作者: 翁进城
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../base - ../../base
#namePrefix: dev- #namePrefix: dev-
namespace: dev namespace: dev
commonLabels: commonLabels:
...@@ -9,9 +9,9 @@ commonLabels: ...@@ -9,9 +9,9 @@ commonLabels:
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patches: patches:
- path: ./increase_replicas.yaml - path: ./increase_replicas.yaml
- path: ./configMap.yaml - path: ./configMap.yaml
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag: 555a2cf5fdf0e37e5c054be3cd3070c2f963be2d newTag: 1fdaab4f81ec6fb14f23e31f2238db2f1386909c
...@@ -11,7 +11,7 @@ function PrivateRouter() { ...@@ -11,7 +11,7 @@ function PrivateRouter() {
const beforeEach = () => { const beforeEach = () => {
// TODO: 判断是否登录 (需要改为实时获取地址栏的路由) // TODO: 判断是否登录 (需要改为实时获取地址栏的路由)
const path = location.pathname; const path = location.pathname;
const token = Cookies.get('SHAREFLY_TOKEN'); const token = Cookies.get('SHAREFLY-TOKEN');
if (!token && path !== '/login') { if (!token && path !== '/login') {
location.replace('/login'); location.replace('/login');
return; return;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论