Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
直播官方帐号
VueJS_634929
提交
561a7347
V
VueJS_634929
项目概览
直播官方帐号
/
VueJS_634929
与 Fork 源项目一致
Fork自
inscode / VueJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VueJS_634929
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
561a7347
编写于
11月 28, 2024
作者:
H
hansen666666
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Thu Nov 28 11:54:00 CST 2024 inscode
上级
3f0f24f4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
83 addition
and
40 deletion
+83
-40
src/App.vue
src/App.vue
+83
-40
未找到文件。
src/App.vue
浏览文件 @
561a7347
<
script
setup
>
import
HelloWorld
from
'
./components/HelloWorld.vue
'
import
TheWelcome
from
'
./components/TheWelcome.vue
'
</
script
>
<
template
>
<
template
>
<header>
<el-container>
<img
alt=
"Vue logo"
class=
"logo"
src=
"./assets/logo.svg"
width=
"125"
height=
"125"
/>
<el-header>
<el-row
type=
"flex"
justify=
"space-between"
>
<el-col>
<el-menu
mode=
"horizontal"
background-color=
"#fff"
text-color=
"#333"
active-text-color=
"#409EFF"
>
<el-menu-item
index=
"1"
>
控制台
</el-menu-item>
<el-menu-item
index=
"2"
>
文档
</el-menu-item>
</el-menu>
</el-col>
<el-col>
<el-menu
mode=
"horizontal"
background-color=
"#fff"
text-color=
"#333"
active-text-color=
"#409EFF"
>
<el-menu-item
index=
"3"
>
财务
</el-menu-item>
<el-menu-item
index=
"4"
>
API密钥
</el-menu-item>
<el-menu-item
index=
"5"
><i
class=
"el-icon-setting"
></i></el-menu-item>
<el-menu-item
index=
"6"
><i
class=
"el-icon-user"
></i></el-menu-item>
</el-menu>
</el-col>
</el-row>
</el-header>
<div
class=
"wrapper"
>
<el-container>
<HelloWorld
msg=
"You did it!"
/>
<el-aside
width=
"200px"
>
</div>
<el-menu
:default-active=
"activeIndex"
router
mode=
"vertical"
background-color=
"#f5f5f5"
text-color=
"#606266"
active-text-color=
"#409EFF"
>
</header>
<el-menu-item
index=
"1"
@
click=
"handleClick('1')"
>
<i
class=
"el-icon-s-home"
></i>
<span
slot=
"title"
>
概览
</span>
</el-menu-item>
<el-menu-item
index=
"2"
@
click=
"handleClick('2')"
>
<i
class=
"el-icon-s-shop"
></i>
<span
slot=
"title"
>
体验中心
</span>
</el-menu-item>
<!-- 更多菜单项... -->
</el-menu>
</el-aside>
<main>
<el-main>
<TheWelcome
/>
<el-card
shadow=
"never"
style=
"margin: 20px;"
>
</main>
<h2>
欢迎体验智谱 AI 大模型!👋
</h2>
</
template
>
<p>
在这里,你可以快速测试大模型在业务场景上的效果,体验平台提供的各类大模型。
</p>
<el-alert
title=
"提示"
type=
"info"
show-icon
>
<
style
scoped
>
<div
v-for=
"(item, index) in tips"
:key=
"index"
>
header
{
{{
item
}}
line-height
:
1.5
;
</div>
}
</el-alert>
</el-card>
.logo
{
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
display
:
block
;
<el-form-item
label=
"模型"
>
margin
:
0
auto
2rem
;
<el-select
v-model=
"form.model"
placeholder=
"请选择模型"
>
}
<el-option
label=
"glm-4v-plus"
value=
"glm-4v-plus"
></el-option>
<!-- 更多选项... -->
</el-select>
</el-form-item>
<!-- 更多表单项... -->
</el-form>
@media
(
min-width
:
1024px
)
{
<el-input
type=
"textarea"
placeholder=
"请输入内容"
v-model=
"inputText"
></el-input>
header
{
</el-main>
display
:
flex
;
</el-container>
place-items
:
center
;
</el-container>
padding-right
:
calc
(
var
(
--section-gap
)
/
2
);
</
template
>
}
.logo
{
<
script
>
margin
:
0
2rem
0
0
;
export
default
{
data
()
{
return
{
activeIndex
:
'
1
'
,
form
:
{
model
:
''
,
// 其他表单字段...
},
inputText
:
''
,
tips
:
[
'
模型更擅长中文,也支持英文;
'
,
'
请避免输入有违公序良俗的问题,模型可能无法回答不合适的问题;
'
,
'
体验中心为计费调用,模型计价规则可参考产品定价
'
]
};
},
methods
:
{
handleClick
(
index
)
{
this
.
activeIndex
=
index
;
}
}
}
};
</
script
>
header
.wrapper
{
<
style
scoped
>
display
:
flex
;
/* 添加自定义样式 */
place-items
:
flex-start
;
</
style
>
flex-wrap
:
wrap
;
\ No newline at end of file
}
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录