应用服务管理
This commit is contained in:
parent
1b9d58f222
commit
16bc099987
11
src/App.vue
11
src/App.vue
@ -5,7 +5,7 @@
|
||||
<Setings ref="setingsRef" v-show="setLockScreen" />
|
||||
<CloseFull v-if="!themeConfig.isLockScreen" />
|
||||
<Upgrade v-if="getVersion" />
|
||||
<Sponsors />
|
||||
<Sponsors v-if="!hideSponsors"/>
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
@ -46,12 +46,19 @@ const setLockScreen = computed(() => {
|
||||
// 获取版本号
|
||||
const getVersion = computed(() => {
|
||||
let isVersion = false;
|
||||
if (route.path !== '/login') {
|
||||
if (route.path !== '/login' && route.path !== '/article/content') {
|
||||
// @ts-ignore
|
||||
if ((Local.get('version') && Local.get('version') !== __NEXT_VERSION__) || !Local.get('version')) isVersion = true;
|
||||
}
|
||||
return isVersion;
|
||||
});
|
||||
// 隐藏广告
|
||||
const hideSponsors = computed(() => {
|
||||
const path = route.path;
|
||||
console.log(path === '/login' || path === '/article/content');
|
||||
|
||||
return path === '/login' || path === '/article/content';
|
||||
});
|
||||
// 获取全局组件大小
|
||||
const getGlobalComponentSize = computed(() => {
|
||||
return other.globalComponentSize();
|
||||
|
@ -1 +1,2 @@
|
||||
export const baseUrlHost = "/vueAdminApi";
|
||||
export const baseUrlHost = "/vueAdminApi";
|
||||
export const pixelUrlHost = "/pixelApi";
|
@ -11,6 +11,7 @@ export default {
|
||||
UserManage: 'UserManage',
|
||||
systemDic: 'systemDic',
|
||||
article: 'article',
|
||||
apply: 'apply',
|
||||
message: 'message',
|
||||
order: 'order',
|
||||
articleContent: 'articleContent',
|
||||
|
@ -11,6 +11,7 @@ export default {
|
||||
systemDept: '部门管理',
|
||||
systemDic: '字典管理',
|
||||
article: '文章管理',
|
||||
apply: '应用管理',
|
||||
carousel: '轮播图管理',
|
||||
clients: '客户管理',
|
||||
photos: '图片管理',
|
||||
|
@ -11,6 +11,7 @@ export default {
|
||||
systemDept: '部門管理',
|
||||
systemDic: '字典管理',
|
||||
article: '文章管理',
|
||||
apply: '应用管理',
|
||||
message: '聯言管理',
|
||||
articleContent: '文章詳情',
|
||||
order: '訂單管理',
|
||||
|
@ -10,7 +10,7 @@ export default {
|
||||
},
|
||||
account: {
|
||||
accountPlaceholder1: 'The user name admin or not is common',
|
||||
accountPlaceholder2: 'Password: 123456',
|
||||
accountPlaceholder2: 'Please enter the password',
|
||||
accountPlaceholder3: 'Please enter the verification code',
|
||||
accountBtnText: 'Sign in',
|
||||
},
|
||||
|
@ -9,8 +9,8 @@ export default {
|
||||
two4: '友情链接',
|
||||
},
|
||||
account: {
|
||||
accountPlaceholder1: '用户名 admin 或不输均为 common',
|
||||
accountPlaceholder2: '密码:123456',
|
||||
accountPlaceholder1: '请输入用户名',
|
||||
accountPlaceholder2: '请输入密码',
|
||||
accountPlaceholder3: '请输入验证码',
|
||||
accountBtnText: '登 录',
|
||||
},
|
||||
|
@ -9,8 +9,8 @@ export default {
|
||||
two4: '友情連結',
|
||||
},
|
||||
account: {
|
||||
accountPlaceholder1: '用戶名admin或不輸均為common',
|
||||
accountPlaceholder2: '密碼:123456',
|
||||
accountPlaceholder1: '請輸入用戶名',
|
||||
accountPlaceholder2: '請輸入密碼',
|
||||
accountPlaceholder3: '請輸入驗證碼',
|
||||
accountBtnText: '登入',
|
||||
},
|
||||
|
@ -188,6 +188,7 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
},
|
||||
],
|
||||
},
|
||||
// 文章管理
|
||||
{
|
||||
path: '/article',
|
||||
name: 'article',
|
||||
@ -250,6 +251,23 @@ export const dynamicRoutes: Array<RouteRecordRaw> = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// 应用管理
|
||||
// {
|
||||
// path: '/apply',
|
||||
// name: 'apply',
|
||||
// component: () => import('/@/views/apply/index.vue'),
|
||||
// meta: {
|
||||
// title: 'message.router.apply',
|
||||
// isLink: '',
|
||||
// isHide: false,
|
||||
// isKeepAlive: true,
|
||||
// isAffix: false,
|
||||
// isIframe: false,
|
||||
// roles: ['admin', 'common'],
|
||||
// icon: 'iconfont icon-crew_feature',
|
||||
// },
|
||||
// children: []
|
||||
// },
|
||||
// 轮播图管理
|
||||
{
|
||||
path: '/carousel',
|
||||
|
@ -184,7 +184,7 @@ const toEditArticle = (row: any) => {
|
||||
const copyLink = (row: any) => {
|
||||
if(row.id == null||row.id == ''){ ElMessage.warning('链接为空');return;}
|
||||
var aux = document.createElement("input");
|
||||
aux.setAttribute("value", `${viteUrl}#article/content?id=${row.id}`);
|
||||
aux.setAttribute("value", `${viteUrl}vueAdmin/#article/content?id=${row.id}`);
|
||||
document.body.appendChild(aux);
|
||||
aux.select();
|
||||
document.execCommand("copy");
|
||||
@ -200,7 +200,7 @@ const toShowDetail = (row: any) => {
|
||||
|
||||
// 预览
|
||||
const toPreview = (row: any) => {
|
||||
window.open(`${viteUrl}#article/content?id=${row.id}`);
|
||||
window.open(`${viteUrl}vueAdmin/#article/content?id=${row.id}`);
|
||||
}
|
||||
|
||||
// 文章删除
|
||||
|
@ -79,8 +79,10 @@ const router = useRouter();
|
||||
const state = reactive({
|
||||
isShowPassword: false,
|
||||
ruleForm: {
|
||||
username: 'admin1',
|
||||
password: '123456',
|
||||
// username: 'admin1',
|
||||
// password: '123456',
|
||||
username: '',
|
||||
password: '',
|
||||
code: '1234',
|
||||
usertype: 1
|
||||
},
|
||||
@ -116,8 +118,11 @@ const onSignIn = async () => {
|
||||
// 执行完 initBackEndControlRoutes,再执行 signInSuccess
|
||||
signInSuccess(isNoPower);
|
||||
}
|
||||
}else{
|
||||
ElMessage.error(res.message);
|
||||
}
|
||||
} catch (error) {
|
||||
ElMessage.error('账号或密码错误!');
|
||||
} finally {
|
||||
state.loading.signIn = false;
|
||||
}
|
||||
|
@ -32,12 +32,34 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
proxy: {
|
||||
'/vueAdminApi': {
|
||||
target: 'http://8.138.171.103:8081',
|
||||
// target: 'http://8.138.175.106:8090',
|
||||
// target: 'https://www.ymsc.org.cn/vueAdminApi',
|
||||
ws: true,
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/vueAdminApi/, ''),
|
||||
},
|
||||
'/pixelApi': {
|
||||
target: 'http://8.138.171.103:8082',
|
||||
ws: true,
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/pixelApi/, ''),
|
||||
},
|
||||
'/vueAdmin': {
|
||||
target: 'http://localhost:8888',
|
||||
// target: 'http://8.138.175.106:8090',
|
||||
// target: 'https://www.ymsc.org.cn/vueAdmin',
|
||||
ws: true,
|
||||
secure: false,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/vueAdmin/, ''),
|
||||
},
|
||||
'/upload': {
|
||||
target: 'http://8.138.171.103',
|
||||
// target: 'http://8.138.175.106',
|
||||
// target: 'https://www.ymsc.org.cn/upload',
|
||||
secure: false,
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user