Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Apr 9, 2024
2 parents 2f625f1 + 7dc20b6 commit a925eaa
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 38 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
name: Translate README

on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
# ISO Langusge Codes: https://cloud.google.com/translate/docs/languages
- name: Adding README - English
uses: dephraiim/translate-readme@main
with:
LANG: en
- name: Adding README - Japanese
uses: dephraiim/translate-readme@main
with:
LANG: ja
- name: Adding README - German
uses: dephraiim/translate-readme@main
with:
LANG: de
- name: Adding README - French
uses: dephraiim/translate-readme@main
with:
LANG: fr
- name: Adding README - Spanish
uses: dephraiim/translate-readme@main
with:
LANG: es
#name: Translate README
#
#on:
# push:
# branches:
# - master
#jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 12.x
# # ISO Langusge Codes: https://cloud.google.com/translate/docs/languages
# - name: Adding README - English
# uses: dephraiim/translate-readme@main
# with:
# LANG: en
# - name: Adding README - Japanese
# uses: dephraiim/translate-readme@main
# with:
# LANG: ja
# - name: Adding README - German
# uses: dephraiim/translate-readme@main
# with:
# LANG: de
# - name: Adding README - French
# uses: dephraiim/translate-readme@main
# with:
# LANG: fr
# - name: Adding README - Spanish
# uses: dephraiim/translate-readme@main
# with:
# LANG: es
2 changes: 2 additions & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ const BASE_URL_MAP = {
DEV: '',
PROD: '',
GP_PAGES: '/dist',
// GP_PAGES: '/douyin',
UNI: 'https://dy.ttentau.top'
}

export const IS_GP_PAGES = import.meta.env.VITE_ENV === 'GP_PAGES'
export const BASE_URL = BASE_URL_MAP[import.meta.env.VITE_ENV]
export const IMG_URL = BASE_URL + '/images/'
export const FILE_URL = BASE_URL + '/data/'
5 changes: 3 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import routes from './routes'
import { useBaseStore } from '@/store/pinia'
import { IS_GP_PAGES } from '@/config'

const router = createRouter({
history: createWebHistory(),
history: IS_GP_PAGES ? createWebHashHistory() : createWebHistory(),
routes,
scrollBehavior(to, from, savedPosition) {
// console.log('savedPosition', savedPosition)
Expand Down

0 comments on commit a925eaa

Please sign in to comment.