- 前往登陆登录360智慧平台
+
前往登陆登录360智慧平台
+
1.
- 前往登陆登录360智慧平台
+
前往登陆登录360智慧平台
2.
- 前往ocpc设置页>点击“添加OCPC投放包”按钮。注意转换类型只能选择“订单”,其他的根据表单提示填写。
+
前往ocpc设置页>点击“添加OCPC投放包”按钮。注意转换类型只能选择“订单”,其他的根据表单提示填写。
@@ -37,50 +37,67 @@ export default {
},
computed: {
breadcrumbs() {
- if (this.$route.meta.hideBreadcrumb) return [];
+ // if (this.$route.meta.hideBreadcrumb) return [];
- const crumbs = [];
- let currentRoute = this.$route;
+ const crumbs = [
+ {
+ path:{
+ path:'/',
+ query:{uid: "2300"},
+ params:{}
+ },
+ title:'首页'
+ },
+ {
+ path:{
+ path: "/agent/siteList",
+ query:{uid: "2300"},
+ params:{}
+ },
+ title:"站点列表"
+ },
+ ];
+ // let currentRoute = this.$route;
- // 递归查找所有父级路由
- while (currentRoute) {
- // 获取匹配的路由记录
- // const matchedRoute = this.$router.options.routes.find(
- // r => r.name === currentRoute.name
- // );
+ // // 递归查找所有父级路由
+ // while (currentRoute) {
+ // // 获取匹配的路由记录
+ // // const matchedRoute = this.$router.options.routes.find(
+ // // r => r.name === currentRoute.name
+ // // );
- // 构建包含完整参数的对象
- const routeWithParams = {
- path: currentRoute.path,
- query: currentRoute.query,
- params: currentRoute.params
- };
+ // // 构建包含完整参数的对象
+ // const routeWithParams = {
+ // path: currentRoute.path,
+ // query: currentRoute.query,
+ // params: currentRoute.params
+ // };
- crumbs.unshift({
- path: routeWithParams,
- title: this.getTitle(currentRoute)
- });
+ // crumbs.unshift({
+ // path: routeWithParams,
+ // title: this.getTitle(currentRoute)
+ // });
- // 通过 meta.breadcrumbParent 查找父级路由
- if (currentRoute.meta.breadcrumbParent) {
- currentRoute = this.$router.options.routes.find(
- r => r.name === currentRoute.meta.breadcrumbParent
- );
+ // // 通过 meta.breadcrumbParent 查找父级路由
+ // if (currentRoute.meta.breadcrumbParent) {
+ // currentRoute = this.$router.options.routes.find(
+ // r => r.name === currentRoute.meta.breadcrumbParent
+ // );
- // 如果找到了父路由,创建一个模拟的$route对象
- if (currentRoute) {
- currentRoute = {
- ...currentRoute,
- path: currentRoute.path,
- query: this.$route.query, // 保留当前查询参数
- params: this.$route.params, // 保留当前路由参数
- meta: currentRoute.meta || {}
- };
- }
- } else {
- currentRoute = null;
- }
- }
+ // // 如果找到了父路由,创建一个模拟的$route对象
+ // if (currentRoute) {
+ // currentRoute = {
+ // ...currentRoute,
+ // path: currentRoute.path,
+ // query: this.$route.query, // 保留当前查询参数
+ // params: this.$route.params, // 保留当前路由参数
+ // meta: currentRoute.meta || {}
+ // };
+ // }
+ // } else {
+ // currentRoute = null;
+ // }
+ // }
return crumbs;
},
diff --git a/packages/GuipSwitch/index.js b/packages/GuipSwitch/index.js
new file mode 100644
index 0000000..854e00b
--- /dev/null
+++ b/packages/GuipSwitch/index.js
@@ -0,0 +1,7 @@
+import GuipSwitch from './src/index.vue'
+
+GuipSwitch.install = function(Vue) {
+ Vue.component(GuipSwitch.name || 'GuipSwitch', GuipSwitch)
+}
+
+export default GuipSwitch
\ No newline at end of file
diff --git a/packages/GuipSwitch/src/index.vue b/packages/GuipSwitch/src/index.vue
new file mode 100644
index 0000000..6ffcfdd
--- /dev/null
+++ b/packages/GuipSwitch/src/index.vue
@@ -0,0 +1,109 @@
+
+