feat(模板市场): 优化模板市场页面布局和功能
-调整模板市场页面的样式,增加搜索功能 - 优化模板分类和展示逻辑 - 添加更多模板探索的提示信息 - 修复模板市场相关的一些小问题
This commit is contained in:
@@ -4,7 +4,7 @@ import { AnswerApi } from '@/views/Survey/views/Preview/js/api';
|
||||
import { getLanguage } from '@/views/Survey/views/Preview/js/language';
|
||||
|
||||
export const useQuestionStore = defineStore('questionStore', () => {
|
||||
const currentSn =ref<string>('');
|
||||
const currentSn = ref<string>('');
|
||||
|
||||
const questionsData = ref();
|
||||
|
||||
@@ -52,8 +52,9 @@ export const useQuestionStore = defineStore('questionStore', () => {
|
||||
let { data } = await AnswerApi.getQuetions({
|
||||
id: urlParamSearch.get('sn'),
|
||||
data: {
|
||||
is_preview: 0,
|
||||
is_template: urlParamSearch.get('is_template') || 0,
|
||||
is_preview: 1,
|
||||
is_template: 0,
|
||||
// is_template: urlParamSearch.get('is_template') || 0,
|
||||
source: urlParamSearch.get('source') ?? ''
|
||||
}
|
||||
});
|
||||
@@ -72,7 +73,7 @@ export const useQuestionStore = defineStore('questionStore', () => {
|
||||
}
|
||||
|
||||
return {
|
||||
fetchQuestions:getQuestions,
|
||||
fetchQuestions: getQuestions,
|
||||
currentSn,
|
||||
questionsData,
|
||||
styleInfo,
|
||||
|
||||
Reference in New Issue
Block a user