''
liukangdong
2024-12-03 17d06201759f5c2c181fa95da290f754f43c0f39
''
已删除1个文件
已修改5个文件
16 ■■■■■ 文件已修改
admin/.env 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/.gitignore 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/babel.config.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/router/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/views/login.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/vue.config.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/.env
@@ -4,7 +4,7 @@
VUE_APP_ROUTER_MODE = 'hash'
# é¡¹ç›®ä¸Šä¸‹æ–‡è·¯å¾„
VUE_APP_CONTEXT_PATH = '/'
VUE_APP_CONTEXT_PATH = '/fn_admin/#/'
# æŽ¥å£å‰ç¼€
VUE_APP_API_PREFIX = '/gateway_interface'
admin/.gitignore
@@ -10,6 +10,7 @@
.env.*.local
unpackage
admin
fn_admin
# Log files
npm-debug.log*
yarn-debug.log*
admin/babel.config.js
ÎļþÒÑɾ³ý
admin/src/router/index.js
@@ -10,7 +10,7 @@
const router = new VueRouter({
  // + (process.env.VUE_APP_ROUTER_MODE === 'hash' ? '#' : '')
  // base: process.env.VUE_APP_CONTEXT_PATH,
  base: '/',
  mode: 'hash',
  routes: [
    // ç™»å½•
admin/src/views/login.vue
@@ -138,6 +138,7 @@
            }
            Cookies.set('dm_user_token', res)
            window.location.href = process.env.VUE_APP_CONTEXT_PATH
            // this.$router.push('')
          })
          .catch(e => {
            this.refreshCaptcha()
admin/vue.config.js
@@ -1,13 +1,12 @@
// è¯¦ç»†é…ç½®è¯·å‚考https://cli.vuejs.org/zh/config/#vue-config-js
// const outputDir = process.env.VUE_APP_CONTEXT_PATH.substring(1, process.env.VUE_APP_CONTEXT_PATH.length - 1)
const path = require('path')
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  publicPath: process.env.VUE_APP_CONTEXT_PATH,
  outputDir: 'admin',
  publicPath: './',
  outputDir: 'fn_admin',
  assetsDir: 'static',
  lintOnSave: false,
  devServer: {