feat: scaffold alarm-front Vue 2 project

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>

Former-commit-id: 1347bf8befedaab41f6c25bf881a5ab5ad86ed0d
This commit is contained in:
反编译工作区
2026-04-29 13:03:55 +08:00
parent 7e9817cc17
commit 803fb0bea8
11 changed files with 134 additions and 0 deletions
@@ -0,0 +1,17 @@
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: 'App',
};
</script>
<style>
#app {
height: 100%;
}
</style>
@@ -0,0 +1,17 @@
import axios from 'axios';
const api = axios.create({
baseURL: '/api',
timeout: 30000,
});
api.interceptors.request.use((config) => {
return config;
});
api.interceptors.response.use(
(response) => response.data,
(error) => Promise.reject(error)
);
export default api;
@@ -0,0 +1 @@
@@ -0,0 +1,17 @@
import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from 'axios';
Vue.use(ElementUI);
Vue.prototype.$http = axios;
Vue.config.productionTip = false;
new Vue({
router,
store,
render: (h) => h(App),
}).$mount('#app');
@@ -0,0 +1,15 @@
import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
// 路由从 decompiled/cwos-portal/router-tree.md 提取后填入
// 示例: { path: '/dashboard', name: 'Dashboard', component: () => import('@/views/Dashboard.vue') }
const routes = [];
const router = new VueRouter({
mode: 'hash',
routes,
});
export default router;
@@ -0,0 +1,11 @@
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
export default new Vuex.Store({
state: {},
mutations: {},
actions: {},
modules: {},
});
@@ -0,0 +1 @@