Commit de4d639c authored by guxukai's avatar guxukai

fix: remove vue warning

parent 78b1aec2
module.exports = {
serverPort: 8010,
qsArrayFormat: 'none',
mockPrefix: '/mock',
apiPrefix: '/root',
timeout: 30000,
appName: 'BAAS系统',
}
module.exports = () => {
return {
serverPort: 8010,
qsArrayFormat: 'none',
mockPrefix: '/mock',
apiPrefix: '/root',
timeout: 30000,
account: '个人',
federation: '联盟',
organization: '企业',
system: '系统',
super: '超管',
}
}
const { merge } = require('lodash')
module.exports = merge(require('./basic.config'), {})
module.exports = () => {
return {
serverPort: 8010,
qsArrayFormat: 'none',
mockPrefix: '/mock',
apiPrefix: '/root',
timeout: 30000,
}
}
const { merge } = require('lodash')
module.exports = merge(require('./basic.config'), {})
......@@ -37,6 +37,7 @@ const {
return
}
//其余跳转
authStore.$reset()
window.location.replace(`${origin}/account/proxy`)
}
return res
......
......@@ -4,7 +4,6 @@
</div>
</template>
<script lang="ts" setup>
import { ref, defineProps, defineEmits, onMounted } from 'vue'
const props = defineProps({
loading: {
type: Boolean,
......
......@@ -20,7 +20,7 @@ export default {
</script>
<script setup>
import { useRouter } from 'vue-router'
import { computed, defineProps } from 'vue'
import { computed } from 'vue'
const props = defineProps({
menu: {
type: Object,
......
......@@ -118,7 +118,7 @@ import { useAuth } from '@shared/store/modules/auth'
import { useLayout } from '@shared/store/modules/layout'
import ConsoleMenu from './components/console-menu'
const layoutStore = useLayout()
const PROJECT_NAME = '管理系统'
const PROJECT_NAME = process.env.APP_NAME
let { proxy } = getCurrentInstance()
let currentActiveRoute = ref('home')
......@@ -218,12 +218,13 @@ const {
error: logoutError,
run: logoutRun,
} = useRequest(() => AuthLogout.delete(), { manual: true })
//退出
const handleLogout = () => {
logoutRun().then(res => {
if (res?.code === GATEWAY_CODE.success) {
const authStore = useAuth()
authStore.$reset()
proxy.$router.replace({ name: 'login' })
window.location.replace(window.location.origin + '/entry/login')
} else {
MessageUtils.warning(res?.message)
}
......
......@@ -16,7 +16,7 @@ const LodashModuleReplacementPlugin = require('lodash-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
console.log('sign:::', sign)
const isProduction = process.env.NODE_ENV === 'production'
const appConfig = require(`./config/${sign}.config.js`)()
const appConfig = require(`./config/${sign}.config.js`)
require('svgtofont')({
src: path.resolve(process.cwd(), 'src/assets/icons/svg'), // svg文件目录
dist: path.resolve(process.cwd(), 'src/assets/font'), // 生成文件目录
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment